@Immutable public class LoggingSessionInputBuffer extends Object implements SessionInputBuffer, EofSensor
| Constructor and Description |
|---|
LoggingSessionInputBuffer(SessionInputBuffer in,
Wire wire) |
LoggingSessionInputBuffer(SessionInputBuffer in,
Wire wire,
String charset)
Create an instance that wraps the specified session input buffer.
|
| Modifier and Type | Method and Description |
|---|---|
HttpTransportMetrics |
getMetrics() |
boolean |
isDataAvailable(int timeout) |
boolean |
isEof() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
String |
readLine() |
int |
readLine(CharArrayBuffer buffer) |
public LoggingSessionInputBuffer(SessionInputBuffer in, Wire wire, String charset)
in - The session input buffer.wire - The wire log to use.charset - protocol charset, ASCII if nullpublic LoggingSessionInputBuffer(SessionInputBuffer in, Wire wire)
public boolean isDataAvailable(int timeout)
throws IOException
isDataAvailable in interface SessionInputBufferIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface SessionInputBufferIOExceptionpublic int read()
throws IOException
read in interface SessionInputBufferIOExceptionpublic int read(byte[] b)
throws IOException
read in interface SessionInputBufferIOExceptionpublic String readLine() throws IOException
readLine in interface SessionInputBufferIOExceptionpublic int readLine(CharArrayBuffer buffer) throws IOException
readLine in interface SessionInputBufferIOExceptionpublic HttpTransportMetrics getMetrics()
getMetrics in interface SessionInputBufferCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.