org.apache.http.nio.reactor.SessionOutputBuffer |
Known Indirect Subclasses |
Session output buffer for non-blocking connections. This interface
facilitates intermediate buffering of output data streamed out to
a destination channel and writing data to the buffer from a source, usually
ByteBuffer or ReadableByteChannel
. This interface also
provides methods for writing lines of text.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Makes an attempt to flush the content of this buffer to the given
destination
WritableByteChannel . | |||||||||||
Determines if the buffer contains data.
| |||||||||||
Returns the length of this buffer.
| |||||||||||
Copies content of the source buffer into this buffer.
| |||||||||||
Reads a sequence of bytes from the source channel into this buffer.
| |||||||||||
Copies content of the source buffer into this buffer as one line of text
including a line delimiter.
| |||||||||||
Copies content of the given string into this buffer as one line of text
including a line delimiter.
|
Makes an attempt to flush the content of this buffer to the given
destination WritableByteChannel
.
channel | the destination channel. |
---|
IOException | in case of an I/O error. |
---|
Determines if the buffer contains data.
true
if there is data in the buffer,
false
otherwise.
Returns the length of this buffer.
Copies content of the source buffer into this buffer. The capacity of the destination will be expanded in order to accommodate the entire content of the source buffer.
src | the source buffer. |
---|
Reads a sequence of bytes from the source channel into this buffer.
src | the source channel. |
---|
IOException |
---|
Copies content of the source buffer into this buffer as one line of text including a line delimiter. The capacity of the destination will be expanded in order to accommodate the entire content of the source buffer.
The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
src | the source buffer. |
---|
CharacterCodingException |
---|
Copies content of the given string into this buffer as one line of text including a line delimiter. The capacity of the destination will be expanded in order to accommodate the entire string.
The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
s | the string. |
---|
IOException |
---|