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| 构造器和说明 |
|---|
SynchronousBufferFileReader(FileIOChannel.ID channelID,
boolean writeEnabled) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 BufferFileReaderIOExceptionpublic void seekToPosition(long position)
throws IOException
seekToPosition 在接口中 BufferFileReaderIOExceptionpublic boolean hasReachedEndOfFile()
hasReachedEndOfFile 在接口中 BufferFileReaderCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.