public final class ChannelBufferFramedInputStream extends ChannelBufferInputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxFrameBufferSize |
buffer, DEFAULT_BUFFER_SIZEchannel, PARK_NANOS, PARK_NANOS_MAX, parkedThread| Constructor and Description |
|---|
ChannelBufferFramedInputStream(ReadableByteChannel channel) |
ChannelBufferFramedInputStream(ReadableByteChannel channel,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
readFrame() |
int |
readFrameFragment(int fragmentSize) |
allocateBuffer, available, close, isOpen, read, read, read, readIntgetParkedThread, getUnderlyingChannel, readBuffered, readIntoBuffer, readIntoBufferNonBlocking, refillBuffer, resetAndCopyLeftOverBytesmark, markSupported, read, reset, skippublic ChannelBufferFramedInputStream(ReadableByteChannel channel) throws IOException
IOExceptionpublic ChannelBufferFramedInputStream(ReadableByteChannel channel, int bufferSize) throws IOException
IOExceptionpublic final int readFrame()
throws IOException
readFrame in class InputStreamChannelIOExceptionpublic final int readFrameFragment(int fragmentSize)
throws IOException
readFrameFragment in class InputStreamChannelIOExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.