public class WriteBuffer extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
WriteBuffer.Sink
Interface implemented by clients of the WriteBuffer to enable data to be
written back out from the buffer.
|
| Constructor and Description |
|---|
WriteBuffer(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ByteBuffer from) |
boolean |
isEmpty() |
boolean |
write(WriteBuffer.Sink sink,
boolean blocking) |
public void add(ByteBuffer from)
public boolean isEmpty()
public boolean write(WriteBuffer.Sink sink, boolean blocking) throws IOException
IOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.