Deprecated
(4.3) no longer used.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final EofSensor | |
| private final SessionInputBuffer | in
Original session input buffer. |
| private final Wire | wire
The wire log to use for writing. |
| Access | Constructor and Description |
|---|---|
| public | LoggingSessionInputBuffer(final SessionInputBuffer
The session input buffer. in, final Wire The wire log to use. wire, final String protocol charset, charset)ASCII if nullCreate an instance that wraps the specified session input buffer. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpTransportMetrics | getMetrics()
Implements org. HttpTransportMetrics for this session buffer.
|
| public boolean | isDataAvailable(final int
in milliseconds. timeout)Implements org. |
| public boolean | |
| public int | read(final byte[]
the buffer into which the data is read. b, final int the start offset in array off, final int b
at which the data is written.the maximum number of bytes to read. len)Implements org. len bytes of data from the session buffer into
an array of bytes.
|
| public int | read()
Implements org. |
| public int | read(final byte[]
the buffer into which the data is read. b)Implements org. b.
|
| public String | readLine()
Implements org. |
| public int | readLine(final CharArrayBuffer
the line buffer. buffer)Implements org. |
| charset | back to summary |
|---|---|
| private final String charset | |
| eofSensor | back to summary |
|---|---|
| private final EofSensor eofSensor
Deprecated as a consequence of | |
| in | back to summary |
|---|---|
| private final SessionInputBuffer in Original session input buffer. | |
| wire | back to summary |
|---|---|
| private final Wire wire The wire log to use for writing. | |
| LoggingSessionInputBuffer | back to summary |
|---|---|
| public LoggingSessionInputBuffer(final SessionInputBuffer in, final Wire wire, final String charset) Create an instance that wraps the specified session input buffer.
| |
| LoggingSessionInputBuffer | back to summary |
|---|---|
| public LoggingSessionInputBuffer(final SessionInputBuffer in, final Wire wire) | |
| getMetrics | back to summary |
|---|---|
| public HttpTransportMetrics getMetrics() Implements org. Doc from org. Returns
| |
| isDataAvailable | back to summary |
|---|---|
| public boolean isDataAvailable(final int timeout) throws IOException Implements org. Doc from org. Blocks until some data becomes available in the session buffer or the
given timeout period in milliseconds elapses. If the timeout value is
| |
| isEof | back to summary |
|---|---|
| public boolean isEof() Implements org.
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b, final int off, final int len) throws IOException Implements org. Doc from org. 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() throws IOException Implements org. Doc from org. Reads the next byte of data from this session buffer. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(final byte[] b) throws IOException Implements org. Doc from org. Reads some number of bytes from the session buffer and stores them into
the buffer array
| |
| readLine | back to summary |
|---|---|
| public String readLine() throws IOException Implements org. Doc from org. Reads a complete line of characters up to a line delimiter from this
session buffer. The line delimiter itself is discarded. If no char is
available because the end of the stream has been reached,
The choice of a char encoding and line delimiter sequence is up to the specific implementations of this interface.
| |
| readLine | back to summary |
|---|---|
| public int readLine(final CharArrayBuffer buffer) throws IOException Implements org. Doc from org. 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.
| |