|
XNIO API 3.0.4.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface BufferPipeOutputStream.BufferWriter
A buffer writer for an BufferPipeOutputStream
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
Pooled<ByteBuffer> getBuffer(boolean firstBuffer) throws IOException
firstBuffer
- true
if this is the first buffer in the stream, false
otherwise
IOException
- 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 sent
IOException
- if an I/O error occursvoid flush() throws IOException
flush
in interface Flushable
IOException
- If an I/O error occurs
|
XNIO API 3.0.4.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |