| Modifier and Type | Field and Description |
|---|---|
| private CharBuffer | |
| private final CharsetEncoder | |
| private static final byte[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | SessionOutputBufferImpl(final int
input buffer size bufferSize, final int buffer size for line operations. Has effect only if
lineBufferSize, final CharsetEncoder charEncoder is not null.charEncoder to be used for encoding HTTP protocol elements.
If charEncoder)null simple type cast will be used for char to byte conversion.Creates SessionOutputBufferImpl instance. |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | capacity()
Overrides org. Implements org. |
| public int | flush(final WritableByteChannel
the destination channel. channel)Implements org. WritableByteChannel.
|
| public boolean | hasData()
Overrides org. Implements org. |
| public int | length()
Overrides org. Implements org. |
| public void | write(final ByteBuffer
the source buffer. src)Implements org. |
| public void | write(final ReadableByteChannel
the source channel. src)Implements org. |
| private void | |
| private void | |
| public void | writeLine(final CharArrayBuffer
the source buffer. lineBuffer)Implements org. |
| charbuffer | back to summary |
|---|---|
| private CharBuffer charbuffer | |
| charEncoder | back to summary |
|---|---|
| private final CharsetEncoder charEncoder | |
| CRLF | back to summary |
|---|---|
| private static final byte[] CRLF | |
| lineBufferSize | back to summary |
|---|---|
| private final int lineBufferSize | |
| SessionOutputBufferImpl | back to summary |
|---|---|
| public SessionOutputBufferImpl(final int bufferSize, final int lineBufferSize, final CharsetEncoder charEncoder) Creates SessionOutputBufferImpl instance.
| |
| SessionOutputBufferImpl | back to summary |
|---|---|
public SessionOutputBufferImpl(final int bufferSize, final int lineBufferSize, final Charset charset)
| |
| SessionOutputBufferImpl | back to summary |
|---|---|
public SessionOutputBufferImpl(final int bufferSize, final int lineBufferSize)
| |
| SessionOutputBufferImpl | back to summary |
|---|---|
public SessionOutputBufferImpl(final int bufferSize)
| |
| capacity | back to summary |
|---|---|
| public int capacity() Overrides org. Implements org. Doc from org. Returns available space in the buffer.
| |
| flush | back to summary |
|---|---|
| public int flush(final WritableByteChannel channel) throws IOException Implements org. Doc from org. Makes an attempt to flush the content of this buffer to the given
destination
| |
| 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.
| |
| write | back to summary |
|---|---|
| public void write(final ByteBuffer src) Implements org. Doc from org. 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.
| |
| write | back to summary |
|---|---|
| public void write(final ReadableByteChannel src) throws IOException Implements org. Doc from org. Reads a sequence of bytes from the source channel into this buffer.
| |
| write | back to summary |
|---|---|
| private void write(final byte[] b) | |
| writeCRLF | back to summary |
|---|---|
| private void writeCRLF() | |
| writeLine | back to summary |
|---|---|
| public void writeLine(final CharArrayBuffer lineBuffer) throws CharacterCodingException Implements org. Doc from org. 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.
| |