This interface facilitates intermediate buffering of input data streamed from an input stream and provides methods for reading lines of text.
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public HttpTransportMetrics | |
| public int | |
| public int | Returns: the total number of bytes read into the buffer, or-1 if there is no more data because the end of
the stream has been reached.the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len, InputStream Input stream inputStream)Reads up to |
| public int | Returns: the total number of bytes read into the buffer, or-1 is there is no more data because the end of
the stream has been reached.the buffer into which the data is read. b, InputStream Input stream inputStream)Reads some number of bytes from the session buffer and stores them into
the buffer array |
| public int | Returns: the next byte of data, or-1 if the end of the
stream is reached.Input stream inputStream)Reads the next byte of data from this session buffer. |
| public int | Returns: the total number of bytes read into the buffer, or-1 is there is no more data because the end of
the stream has been reached.the line buffer, one line of characters upon return buffer, InputStream Input stream inputStream)Reads a complete line of characters up to a line delimiter from this session buffer into the given line 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
| |
| getMetrics | back to summary |
|---|---|
| public HttpTransportMetrics getMetrics() Returns
| |
| length | back to summary |
|---|---|
| public int length() Returns length data stored in the buffer
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len, InputStream inputStream) throws IOException Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, InputStream inputStream) throws IOException Reads some number of bytes from the session buffer and stores them into
the buffer array
| |
| read | back to summary |
|---|---|
| public int read(InputStream inputStream) throws IOException Reads the next byte of data from this session buffer. The value byte is
returned as an
| |
| readLine | back to summary |
|---|---|
| public int readLine(CharArrayBuffer buffer, InputStream inputStream) throws IOException Reads a complete line of characters up to a line delimiter from this
session buffer into the given line buffer. The number of chars actually
read is returned as an integer. The line delimiter itself is discarded.
If no char is available because the end of the stream has been reached,
the value The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
| |