| Modifier and Type | Field and Description |
|---|---|
| private CharBuffer | |
| private final CharsetDecoder | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | SessionInputBufferImpl(final int
input buffer size bufferSize, final int buffer size for line operations. Has effect only if
lineBuffersize, final int charDecoder is not null.maximum line length. maxLineLen, final CharsetDecoder charDecoder to be used for decoding HTTP protocol elements.
If charDecoder)null simple type cast will be used for byte to char conversion.Creates SessionInputBufferImpl instance. |
| public | SessionInputBufferImpl(final int bufferSize, final int lineBuffersize, final int maxLineLen, final Charset charset)
|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | capacity()
Overrides org. |
| public int | fill(final ReadableByteChannel
the source channel channel)Implements org. ReadableByteChannel.
|
| public boolean | hasData()
Overrides org. Implements org. |
| public int | length()
Overrides org. Implements org. |
| public void | |
| public int | read()
Implements org. |
| public int | read(final ByteBuffer
the destination buffer. dst, final int the maximum number of bytes to be read. maxLen)Implements org. |
| public int | read(final ByteBuffer
the destination buffer. dst)Implements org. |
| public int | read(final WritableByteChannel
the destination channel. dst, final int the maximum number of bytes to be read. maxLen)Implements org. |
| public int | read(final WritableByteChannel
the destination channel. dst)Implements org. |
| public boolean | readLine(final CharArrayBuffer
the destination buffer. lineBuffer, final boolean end of stream flag endOfStream)Implements org. |
| charbuffer | back to summary |
|---|---|
| private CharBuffer charbuffer | |
| charDecoder | back to summary |
|---|---|
| private final CharsetDecoder charDecoder | |
| lineBuffersize | back to summary |
|---|---|
| private final int lineBuffersize | |
| maxLineLen | back to summary |
|---|---|
| private final int maxLineLen | |
| SessionInputBufferImpl | back to summary |
|---|---|
| public SessionInputBufferImpl(final int bufferSize, final int lineBuffersize, final int maxLineLen, final CharsetDecoder charDecoder) Creates SessionInputBufferImpl instance.
| |
| SessionInputBufferImpl | back to summary |
|---|---|
public SessionInputBufferImpl(final int bufferSize, final int lineBuffersize, final int maxLineLen, final Charset charset)
| |
| SessionInputBufferImpl | back to summary |
|---|---|
public SessionInputBufferImpl(final int bufferSize, final int lineBuffersize, final int maxLineLen)
| |
| SessionInputBufferImpl | back to summary |
|---|---|
public SessionInputBufferImpl(final int bufferSize, final int lineBuffersize)
| |
| SessionInputBufferImpl | back to summary |
|---|---|
public SessionInputBufferImpl(final int bufferSize)
| |
| capacity | back to summary |
|---|---|
| public int capacity() Overrides org. Doc from org. Returns available capacity of this buffer.
| |
| fill | back to summary |
|---|---|
| public int fill(final ReadableByteChannel channel) throws IOException Implements org. Doc from org. Makes an attempt to fill the buffer with data from the given
| |
| hasData | back to summary |
|---|---|
| public boolean hasData() Overrides org. Implements org. Doc from org. Determines if the buffer contains data.
| |
| length | back to summary |
|---|---|
| public int length() Overrides org. Implements org. Doc from org. Returns the length of this buffer.
| |
| put | back to summary |
|---|---|
| public void put(final ByteBuffer src) | |
| read | back to summary |
|---|---|
| public int read() Implements org. Doc from org. Reads one byte from the buffer. If the buffer is empty this method can throw a runtime exception. The exact type of runtime exception thrown by this method depends on implementation.
| |
| read | back to summary |
|---|---|
| public int read(final ByteBuffer dst, final int maxLen) Implements org. Doc from org. Reads a sequence of bytes from this buffer into the destination buffer,
up to the given maximum limit. The exact number of bytes transferred
depends on availability of data in this buffer and capacity of the
destination buffer, but cannot be more than
| |
| read | back to summary |
|---|---|
| public int read(final ByteBuffer dst) Implements org. Doc from org. Reads a sequence of bytes from this buffer into the destination buffer. The exact number of bytes transferred depends on availability of data in this buffer and capacity of the destination buffer.
| |
| read | back to summary |
|---|---|
| public int read(final WritableByteChannel dst, final int maxLen) throws IOException Implements org. Doc from org. Reads a sequence of bytes from this buffer into the destination channel,
up to the given maximum limit. The exact number of bytes transferred
depends on availability of data in this buffer, but cannot be more than
| |
| read | back to summary |
|---|---|
| public int read(final WritableByteChannel dst) throws IOException Implements org. Doc from org. Reads a sequence of bytes from this buffer into the destination channel. The exact number of bytes transferred depends on availability of data in this buffer.
| |
| readLine | back to summary |
|---|---|
| public boolean readLine(final CharArrayBuffer lineBuffer, final boolean endOfStream) throws IOException Implements org. Doc from org. Attempts to transfer a complete line of characters up to a line delimiter
from this buffer to the destination buffer. If a complete line is
available in the buffer, the sequence of chars is transferred to the
destination buffer the method returns The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
| |