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, toStringpublic FileBuffer(java.io.File file,
boolean forRead,
int offset)
throws EBufException
file - File objectforRead - boolean value indicating whether to read the fileEBufException - when an error occurspublic FileBuffer(java.io.File file,
boolean forRead)
throws EBufException
file - File objectforRead - boolean value indicating whether to read the fileEBufException - when an error occurspublic FileBuffer(java.lang.String fileName,
boolean forRead,
int offset)
throws EBufException
EBufExceptionpublic FileBuffer(java.lang.String fileName,
boolean forRead)
throws EBufException
fileName - String name of the fileforRead - boolean value indicating whether to read the fileEBufException - when an error occurspublic long getSize()
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class Bufferjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class Bufferjava.io.IOExceptionpublic java.lang.String getFilename()