java.lang.Object | ||
↳ | org.apache.http.nio.util.ExpandableBuffer | |
↳ | org.apache.http.impl.nio.reactor.SessionInputBufferImpl |
Default implementation of SessionInputBuffer
based on
the ExpandableBuffer
class.
The following parameters can be used to customize the behavior of this class:
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.nio.util.ExpandableBuffer
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.nio.util.ExpandableBuffer
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Makes an attempt to fill the buffer with data from the given
ReadableByteChannel . | |||||||||||
Reads a sequence of bytes from this buffer into the destination buffer.
| |||||||||||
Reads a sequence of bytes from this buffer into the destination channel.
| |||||||||||
Reads one byte from the buffer.
| |||||||||||
Reads a sequence of bytes from this buffer into the destination channel,
up to the given maximum limit.
| |||||||||||
Reads a sequence of bytes from this buffer into the destination buffer,
up to the given maximum limit.
| |||||||||||
Attempts to transfer a complete line of characters up to a line delimiter
from this buffer to a newly created string.
| |||||||||||
Attempts to transfer a complete line of characters up to a line delimiter
from this buffer to the destination buffer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.nio.util.ExpandableBuffer
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.io.BufferInfo
| |||||||||||
From interface
org.apache.http.nio.reactor.SessionInputBuffer
| |||||||||||
From interface
org.apache.http.nio.util.BufferInfo
|
Makes an attempt to fill the buffer with data from the given
ReadableByteChannel
.
channel | the source channel |
---|
IOException |
---|
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.
dst | the destination buffer. |
---|
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.
dst | the destination channel. |
---|
IOException |
---|
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.
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
maxLen
value.
dst | the destination channel. |
---|---|
maxLen | the maximum number of bytes to be read. |
IOException |
---|
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 maxLen
value.
dst | the destination buffer. |
---|---|
maxLen | the maximum number of bytes to be read. |
Attempts to transfer a complete line of characters up to a line delimiter
from this buffer to a newly created string. If a complete line is
available in the buffer, the sequence of chars is transferred to a newly
created string. The line delimiter itself is discarded. If a complete
line is not available in the buffer, this method returns
null
. If endOfStream
parameter
is set to true
this method assumes the end of stream has
been reached and the content currently stored in the buffer should be
treated as a complete line.
The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
null
otherwise.CharacterCodingException |
---|
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 true
. The line
delimiter itself is discarded. If a complete line is not available in
the buffer, this method returns false
without transferring
anything to the destination buffer. If endOfStream
parameter
is set to true
this method assumes the end of stream has
been reached and the content currently stored in the buffer should be
treated as a complete line.
The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
linebuffer | the destination buffer. |
---|
true
if a sequence of chars representing a complete
line has been transferred to the destination buffer, false
otherwise.CharacterCodingException |
---|