@ThreadSafe public class BlockReadableChannel extends Object implements ReadableByteChannel
BlockReader
s.
read(ByteBuffer)
will advance the internal position of the block
reader, and subsequent calls to BlockReader.transferTo(ByteBuf)
will start from where
the channel was left off.Constructor and Description |
---|
BlockReadableChannel(BlockReader reader)
Creates a new channel from a block reader.
|
public BlockReadableChannel(BlockReader reader)
reader
- readerpublic int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
Copyright © 2023. All Rights Reserved.