public class FileBuffer extends Buffer
| Constructor and Description |
|---|
FileBuffer(File file,
boolean forRead)
Creates an instance of a Buffer.
|
FileBuffer(File file,
boolean forRead,
int offset)
Creates an instance of a Buffer.
|
FileBuffer(String fileName,
boolean forRead)
Creates an instance of a Buffer.
|
FileBuffer(String fileName,
boolean forRead,
int offset)
Creates an instance of a Buffer.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename()
Gets the file name and path of the file.
|
InputStream |
getInputStream()
Gets an InputStream to read buffer information.
|
OutputStream |
getOutputStream()
Gets an OutputStream to write buffer information.
|
long |
getSize()
Gets the buffer size.
|
getOffset, isReadBuffer, setOffset, setReadFlag, toStringpublic FileBuffer(File file, boolean forRead, int offset)
public FileBuffer(File file, boolean forRead)
public FileBuffer(String fileName, boolean forRead, int offset)
public FileBuffer(String fileName, boolean forRead)
public long getSize()
public InputStream getInputStream() throws IOException
getInputStream in class BufferIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in class BufferIOExceptionpublic String getFilename()
Copyright © 2003, 2023, Oracle and/or its affiliates.