public class SynchronousBufferFileReader extends SynchronousFileIOChannel implements BufferFileReader
BufferFileReader implementation.
This currently bypasses the I/O manager as it is the only synchronous implementation, which is currently in use.
TODO Refactor I/O manager setup and refactor this into it
FileIOChannel.Enumerator, FileIOChannel.IDfileChannel, id, LOG| Constructor and Description |
|---|
SynchronousBufferFileReader(FileIOChannel.ID channelID,
boolean writeEnabled) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasReachedEndOfFile() |
void |
readInto(Buffer buffer) |
void |
seekToPosition(long position) |
close, isClosedcloseAndDelete, deleteChannel, getChannelID, getNioFileChannel, getSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, closeAndDelete, deleteChannel, getChannelID, getNioFileChannel, getSize, isClosedpublic SynchronousBufferFileReader(FileIOChannel.ID channelID, boolean writeEnabled) throws IOException
IOExceptionpublic void readInto(Buffer buffer) throws IOException
readInto in interface BufferFileReaderIOExceptionpublic void seekToPosition(long position)
throws IOException
seekToPosition in interface BufferFileReaderIOExceptionpublic boolean hasReachedEndOfFile()
hasReachedEndOfFile in interface BufferFileReaderCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.