| |
|
| java.lang.Object com.jofti.store.FileStore
FileStore | class FileStore (Code) | | |
Method Summary | |
FileStore | close() Close the channel associated with this FileStore. | void | force(boolean forceMetadata) | FileStore | open(String fileMode) open the file and get the associated nio FileChannel for the file. | void | write(BlockBuffer lb) Helper provides access to the FileChannel.write() method for
the FileChannel associated with this FileStore. |
channel | FileChannel channel(Code) | | FileChannel associated with this FileStore.
The FileChannel is private to guarantee that all calls to the
channel methods come through this FileStore.
|
fileId | protected int fileId(Code) | | |
nextPosition | long nextPosition(Code) | | FileChannel.position() of last read or write.
May be used to report the file position when IOException occurs.
|
FileStore | FileStore(File file, int id)(Code) | | construct an instance of FileStore for a given file name
Parameters: file - filename |
write | void write(BlockBuffer lb) throws IOException(Code) | | Helper provides access to the FileChannel.write() method for
the FileChannel associated with this FileStore.
Parameters: lb - Reference to a LogBuffer object that is to be written. throws: IOException - |
|
|
|