public final class ChannelBufferFramedInputStream extends ChannelBufferInputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxFrameBufferSize |
buffer, DEFAULT_BUFFER_SIZEbytesRead, channel| Constructor and Description |
|---|
ChannelBufferFramedInputStream(java.nio.channels.ReadableByteChannel channel) |
ChannelBufferFramedInputStream(java.nio.channels.ReadableByteChannel channel,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
readFrame() |
int |
readFrameFragment(int fragmentSize) |
allocateBuffer, available, close, isOpen, read, read, read, readIntgetBytesRead, getParkedThread, getParkNanosMax, getUnderlyingChannel, readBuffered, readIntoBuffer, readIntoBufferNoWait, refillBuffer, refillBufferBase, resetAndCopyLeftOverBytes, setParkedThreadpublic ChannelBufferFramedInputStream(java.nio.channels.ReadableByteChannel channel)
throws java.io.IOException
java.io.IOExceptionpublic ChannelBufferFramedInputStream(java.nio.channels.ReadableByteChannel channel,
int bufferSize)
throws java.io.IOException
java.io.IOExceptionpublic final int readFrame()
throws java.io.IOException
readFrame in class InputStreamChanneljava.io.IOExceptionpublic final int readFrameFragment(int fragmentSize)
throws java.io.IOException
readFrameFragment in class InputStreamChanneljava.io.IOExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.