@Immutable public class LoggingSessionInputBuffer extends Object implements org.apache.http.io.SessionInputBuffer, org.apache.http.io.EofSensor
| Constructor and Description |
|---|
LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in,
Wire wire) |
LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in,
Wire wire,
String charset)
Create an instance that wraps the specified session input buffer.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.io.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(org.apache.http.util.CharArrayBuffer buffer) |
public LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in,
Wire wire,
String charset)
in - The session input buffer.wire - The wire log to use.charset - protocol charset, ASCII if nullpublic LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in,
Wire wire)
public boolean isDataAvailable(int timeout)
throws IOException
isDataAvailable in interface org.apache.http.io.SessionInputBufferIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface org.apache.http.io.SessionInputBufferIOExceptionpublic int read()
throws IOException
read in interface org.apache.http.io.SessionInputBufferIOExceptionpublic int read(byte[] b)
throws IOException
read in interface org.apache.http.io.SessionInputBufferIOExceptionpublic String readLine() throws IOException
readLine in interface org.apache.http.io.SessionInputBufferIOExceptionpublic int readLine(org.apache.http.util.CharArrayBuffer buffer)
throws IOException
readLine in interface org.apache.http.io.SessionInputBufferIOExceptionpublic org.apache.http.io.HttpTransportMetrics getMetrics()
getMetrics in interface org.apache.http.io.SessionInputBufferpublic boolean isEof()
isEof in interface org.apache.http.io.EofSensorCopyright © 1999-2015 The Apache Software Foundation. All Rights Reserved.