public interface BlockWriter extends Closeable
This class does not provide thread-safety.
Modifier and Type | Method and Description |
---|---|
long |
append(io.netty.buffer.ByteBuf buf)
Appends buf.readableBytes() bytes to the end of this block writer from the given buf.
|
long |
append(ByteBuffer inputBuf)
Appends data to the end of a block from an input
ByteBuffer . |
long |
append(DataBuffer buffer)
Appends buffer.readableBytes() bytes to the end of this block writer from the given buffer.
|
WritableByteChannel |
getChannel() |
long |
getPosition() |
long append(ByteBuffer inputBuf) throws IOException
ByteBuffer
.inputBuf
- ByteBuffer
that input data is stored inIOException
long append(io.netty.buffer.ByteBuf buf) throws IOException
buf
- the byte buffer that holds the dataIOException
long append(DataBuffer buffer) throws IOException
buffer
- the byte buffer that holds the dataIOException
long getPosition()
WritableByteChannel getChannel()
Copyright © 2023. All Rights Reserved.