Deprecated
(4.3) use SessionOutputBufferImpl
OutputStream. This class buffers small chunks of
output data in an internal byte array for optimal output performance.
writeLine(CharArrayBuffer) and writeLine(String) methods
of this class use CR-LF as a line delimiter.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ByteBuffer | |
| private ByteArrayBuffer | |
| private Charset | |
| private static final byte[] | |
| private CharsetEncoder | |
| private HttpTransportMetricsImpl | |
| private int | |
| private CodingErrorAction | |
| private CodingErrorAction | |
| private OutputStream |
| Access | Constructor and Description |
|---|---|
| protected | AbstractSessionOutputBuffer(final OutputStream outStream, final int bufferSize, final Charset charset, final int minChunkLimit, final CodingErrorAction malformedCharAction, final CodingErrorAction unmappableCharAction)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Implements org. |
| public int | |
| protected HttpTransportMetricsImpl | |
| public void | flush()
Implements org. |
| protected void | |
| public HttpTransportMetrics | getMetrics()
Implements org. HttpTransportMetrics for this session buffer.
|
| private void | |
| protected void | init(final OutputStream outStream, final int bufferSize, final HttpParams params)
Deprecated
as a consequence of
HttpParams being deprecated.
|
| public int | |
| public void | write(final byte[]
the data. b, final int the start offset in the data. off, final int the number of bytes to write. len)Implements org. len bytes from the specified byte array
starting at offset off to this session buffer.
|
| public void | write(final byte[]
the data. b)Implements org. b.length bytes from the specified byte array
to this session buffer.
|
| public void | write(final int
the b)byte.Implements org. |
| private void | |
| public void | writeLine(final String
the line. s)Implements org. |
| public void | writeLine(final CharArrayBuffer
the buffer containing chars of the line. charbuffer)Implements org. |
| ascii | back to summary |
|---|---|
| private boolean ascii | |
| bbuf | back to summary |
|---|---|
| private ByteBuffer bbuf | |
| buffer | back to summary |
|---|---|
| private ByteArrayBuffer buffer | |
| charset | back to summary |
|---|---|
| private Charset charset | |
| CRLF | back to summary |
|---|---|
| private static final byte[] CRLF | |
| encoder | back to summary |
|---|---|
| private CharsetEncoder encoder | |
| metrics | back to summary |
|---|---|
| private HttpTransportMetricsImpl metrics | |
| minChunkLimit | back to summary |
|---|---|
| private int minChunkLimit | |
| onMalformedCharAction | back to summary |
|---|---|
| private CodingErrorAction onMalformedCharAction | |
| onUnmappableCharAction | back to summary |
|---|---|
| private CodingErrorAction onUnmappableCharAction | |
| outStream | back to summary |
|---|---|
| private OutputStream outStream | |
| AbstractSessionOutputBuffer | back to summary |
|---|---|
| protected AbstractSessionOutputBuffer(final OutputStream outStream, final int bufferSize, final Charset charset, final int minChunkLimit, final CodingErrorAction malformedCharAction, final CodingErrorAction unmappableCharAction) | |
| AbstractSessionOutputBuffer | back to summary |
|---|---|
| public AbstractSessionOutputBuffer() | |
| available | back to summary |
|---|---|
| public int available() Implements org. Doc from org. Returns available space in the buffer.
| |
| capacity | back to summary |
|---|---|
| public int capacity() Implements org. Doc from org. Returns total capacity of the buffer
| |
| createTransportMetrics | back to summary |
|---|---|
protected HttpTransportMetricsImpl createTransportMetrics()
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements org. Doc from org. Flushes this session buffer and forces any buffered output bytes
to be written out. The general contract of
| |
| flushBuffer | back to summary |
|---|---|
| protected void flushBuffer() throws IOException | |
| getMetrics | back to summary |
|---|---|
| public HttpTransportMetrics getMetrics() Implements org. Doc from org. Returns
| |
| handleEncodingResult | back to summary |
|---|---|
| private void handleEncodingResult(final CoderResult result) throws IOException | |
| init | back to summary |
|---|---|
| protected void init(final OutputStream outStream, final int bufferSize, final HttpParams params)
Deprecated as a consequence of | |
| length | back to summary |
|---|---|
| public int length() Implements org. Doc from org. Return length data stored in the buffer
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b, final int off, final int len) throws IOException Implements org. Doc from org. Writes
If
| |
| write | back to summary |
|---|---|
| public void write(final byte[] b) throws IOException Implements org. Doc from org. Writes
| |
| write | back to summary |
|---|---|
| public void write(final int b) throws IOException Implements org. Doc from org. Writes the specified byte to this session buffer.
| |
| writeEncoded | back to summary |
|---|---|
| private void writeEncoded(final CharBuffer cbuf) throws IOException | |
| writeLine | back to summary |
|---|---|
| public void writeLine(final String s) throws IOException Implements org. Writes characters from the specified string followed by a line delimiter to this session buffer. This method uses CR-LF as a line delimiter.
| |
| writeLine | back to summary |
|---|---|
| public void writeLine(final CharArrayBuffer charbuffer) throws IOException Implements org. Writes characters from the specified char array followed by a line delimiter to this session buffer. This method uses CR-LF as a line delimiter.
| |