public class FileBuffer extends Buffer
Constructor and Description |
---|
FileBuffer(java.io.File file,
boolean forRead)
Creates an instance of a Buffer.
|
FileBuffer(java.io.File file,
boolean forRead,
int offset)
Creates an instance of a Buffer.
|
FileBuffer(java.lang.String fileName,
boolean forRead)
Creates an instance of a Buffer.
|
FileBuffer(java.lang.String fileName,
boolean forRead,
int offset)
Creates an instance of a Buffer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilename()
Gets the file name and path of the file.
|
java.io.InputStream |
getInputStream()
Gets an InputStream to read buffer information.
|
java.io.OutputStream |
getOutputStream()
Gets an OutputStream to write buffer information.
|
long |
getSize()
Gets the buffer size.
|
getOffset, isReadBuffer, setOffset, setReadFlag, toString
public FileBuffer(java.io.File file, boolean forRead, int offset) throws EBufException
EBufException
public FileBuffer(java.io.File file, boolean forRead) throws EBufException
EBufException
public FileBuffer(java.lang.String fileName, boolean forRead, int offset) throws EBufException
EBufException
public FileBuffer(java.lang.String fileName, boolean forRead) throws EBufException
EBufException
public long getSize()
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class Buffer
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class Buffer
java.io.IOException
public java.lang.String getFilename()