public abstract class AbstractChannelReaderInputView extends AbstractPagedInputView
DataInputView
that is backed by a FileIOChannel
,
making it effectively a data input stream. The view reads it data in blocks from the underlying
channel. The view can only read data that has been written by a ChannelWriterOutputView
,
due to block formatting.headerLength
Constructor and Description |
---|
AbstractChannelReaderInputView(int headerLength) |
Modifier and Type | Method and Description |
---|---|
abstract List<MemorySegment> |
close()
Closes this InputView, closing the underlying reader and returning all memory segments.
|
abstract FileIOChannel |
getChannel()
Get the underlying channel.
|
advance, clear, doAdvance, getCurrentPositionInSegment, getCurrentSegment, getCurrentSegmentLimit, getHeaderLength, getLimitForSegment, nextSegment, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seekInput, skipBytes, skipBytesToRead
public AbstractChannelReaderInputView(int headerLength)
public abstract List<MemorySegment> close() throws IOException
IOException
- Thrown, if the underlying reader could not be properly closed.public abstract FileIOChannel getChannel()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.