public final class ChannelBufferFramedOutputStream extends ChannelBufferOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doWriteFrameSize |
buffer, DEFAULT_BUFFER_SIZEchannel, PARK_NANOS, PARK_NANOS_MAX, parkedThread| Constructor and Description |
|---|
ChannelBufferFramedOutputStream(WritableByteChannel channel) |
ChannelBufferFramedOutputStream(WritableByteChannel channel,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
protected void |
flushBufferBlocking(ByteBuffer buffer) |
allocateBuffer, close, isOpen, write, write, writeflushBufferNonBlocking, getParkedThread, getUnderlyingChannel, writeBuffer, writeBuffered, writeBufferNonBlockingwritepublic ChannelBufferFramedOutputStream(WritableByteChannel channel) throws IOException
IOExceptionpublic ChannelBufferFramedOutputStream(WritableByteChannel channel, int bufferSize) throws IOException
IOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class ChannelBufferOutputStreamIOExceptionprotected void flushBufferBlocking(ByteBuffer buffer) throws IOException
flushBufferBlocking in class ChannelBufferOutputStreamIOExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.