public final class ChannelBufferFramedOutputStream extends ChannelBufferOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doWriteFrameSize |
buffer, DEFAULT_BUFFER_SIZEbytesWritten, channel| Constructor and Description |
|---|
ChannelBufferFramedOutputStream(java.nio.channels.WritableByteChannel channel) |
ChannelBufferFramedOutputStream(java.nio.channels.WritableByteChannel channel,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
protected void |
flushBufferBlocking(java.nio.ByteBuffer buffer) |
allocateBuffer, close, isOpen, write, write, write, writeIntflushBufferNonBlockingBase, getBytesWritten, getParkedThread, getParkNanosMax, getUnderlyingChannel, isSocketToSameHost, setParkedThread, writeBuffer, writeBuffered, writeBufferNoWaitpublic ChannelBufferFramedOutputStream(java.nio.channels.WritableByteChannel channel)
throws java.io.IOException
java.io.IOExceptionpublic ChannelBufferFramedOutputStream(java.nio.channels.WritableByteChannel channel,
int bufferSize)
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class ChannelBufferOutputStreamjava.io.IOExceptionprotected void flushBufferBlocking(java.nio.ByteBuffer buffer)
throws java.io.IOException
flushBufferBlocking in class ChannelBufferOutputStreamjava.io.IOExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.