public interface DataWriter extends Closeable, Cancelable
Modifier and Type | Interface and Description |
---|---|
static class |
DataWriter.Factory
Factory for
DataWriter . |
Modifier and Type | Method and Description |
---|---|
int |
chunkSize() |
void |
flush()
Flushes all the pending chunks.
|
long |
pos() |
void |
writeChunk(io.netty.buffer.ByteBuf chunk)
Writes a chunk.
|
cancel
void writeChunk(io.netty.buffer.ByteBuf chunk) throws IOException
chunk
- the chunkIOException
void flush() throws IOException
IOException
int chunkSize()
long pos()
Copyright © 2023. All Rights Reserved.