
public static interface BufferPipeOutputStream.BufferWriter
extends java.io.Flushable
BufferPipeOutputStream.| Modifier and Type | Method and Description |
|---|---|
void |
accept(Pooled<java.nio.ByteBuffer> pooledBuffer,
boolean eof)
Accept a buffer.
|
void |
flush()
Flushes this stream by writing any buffered output to the underlying stream.
|
Pooled<java.nio.ByteBuffer> |
getBuffer(boolean firstBuffer)
Get a new buffer to be filled.
|
Pooled<java.nio.ByteBuffer> getBuffer(boolean firstBuffer) throws java.io.IOException
firstBuffer - true if this is the first buffer in the stream, false otherwisejava.io.IOException - if an I/O error occursvoid accept(Pooled<java.nio.ByteBuffer> pooledBuffer, boolean eof) throws java.io.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 sentjava.io.IOException - if an I/O error occursvoid flush()
throws java.io.IOException
flush in interface java.io.Flushablejava.io.IOException - If an I/O error occursCopyright © 2010 JBoss, a division of Red Hat, Inc.