This interface facilitates intermediate buffering of output data streamed out to an output stream and provides provides methods for writing lines of text.
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public void | flush(OutputStream outputStream)
Flushes this session buffer and forces any buffered output bytes to be written out. |
| public HttpTransportMetrics | |
| public int | |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len, OutputStream outputStream)Writes |
| public void | write(byte[]
the data. b, OutputStream outputStream)Writes |
| public void | |
| public void | writeLine(CharArrayBuffer
the buffer containing chars of the line. buffer, OutputStream outputStream)Writes characters from the specified char array followed by a line delimiter to this session buffer. |
| available | back to summary |
|---|---|
| public int available() Returns available space in the buffer.
| |
| capacity | back to summary |
|---|---|
| public int capacity() Returns total capacity of the buffer
| |
| flush | back to summary |
|---|---|
| public void flush(OutputStream outputStream) throws IOException Flushes this session buffer and forces any buffered output bytes
to be written out. The general contract of
| |
| getMetrics | back to summary |
|---|---|
| public HttpTransportMetrics getMetrics() Returns
| |
| length | back to summary |
|---|---|
| public int length() Return length data stored in the buffer
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len, OutputStream outputStream) throws IOException Writes
If
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, OutputStream outputStream) throws IOException Writes
| |
| write | back to summary |
|---|---|
| public void write(int b, OutputStream outputStream) throws IOException Writes the specified byte to this session buffer.
| |
| writeLine | back to summary |
|---|---|
| public void writeLine(CharArrayBuffer buffer, OutputStream outputStream) throws IOException Writes characters from the specified char array followed by a line delimiter to this session buffer. The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
| |