public abstract class AbstractChannelReaderInputView extends AbstractPagedInputView
DataInputViewthat 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.
|Constructor and Description|
|Modifier and Type||Method and Description|
Closes this InputView, closing the underlying reader and returning all memory segments.
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–2023 The Apache Software Foundation. All rights reserved.