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