public interface DataWriter extends java.io.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.
|
cancelvoid writeChunk(io.netty.buffer.ByteBuf chunk)
throws java.io.IOException
chunk - the chunkjava.io.IOExceptionvoid flush()
throws java.io.IOException
java.io.IOExceptionint chunkSize()
long pos()
Copyright © 2022. All Rights Reserved.