public static interface BufferPipeOutputStream.BufferWriter extends Flushable
BufferPipeOutputStream.| Modifier and Type | Method and Description |
|---|---|
void |
accept(Pooled<ByteBuffer> pooledBuffer,
boolean eof)
Accept a buffer.
|
void |
flush()
Flushes this stream by writing any buffered output to the underlying stream.
|
Pooled<ByteBuffer> |
getBuffer(boolean firstBuffer)
Get a new buffer to be filled.
|
Pooled<ByteBuffer> getBuffer(boolean firstBuffer) throws IOException
firstBuffer - true if this is the first buffer in the stream, false otherwiseIOException - if an I/O error occursvoid accept(Pooled<ByteBuffer> pooledBuffer, boolean eof) throws IOException
eof flag will be set to true.
This method should block until the entire buffer is consumed, or an error occurs. This method may also block
until some other condition, such as flow control, is met.pooledBuffer - the buffer to sendeof - true if this is the last buffer which will be sentIOException - if an I/O error occursvoid flush()
throws IOException
flush in interface FlushableIOException - If an I/O error occursCopyright © 2019 JBoss by Red Hat. All rights reserved.