@Contract(threading=IMMUTABLE)
@Deprecated
public class LoggingSessionInputBuffer
extends java.lang.Object
implements org.apache.http.io.SessionInputBuffer, org.apache.http.io.EofSensor
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
charset
Deprecated.
|
private org.apache.http.io.EofSensor |
eofSensor
Deprecated.
|
private org.apache.http.io.SessionInputBuffer |
in
Deprecated.
Original session input buffer.
|
private Wire |
wire
Deprecated.
The wire log to use for writing.
|
| Constructor and Description |
|---|
LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in,
Wire wire)
Deprecated.
|
LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in,
Wire wire,
java.lang.String charset)
Deprecated.
Create an instance that wraps the specified session input buffer.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.io.HttpTransportMetrics |
getMetrics()
Deprecated.
|
boolean |
isDataAvailable(int timeout)
Deprecated.
|
boolean |
isEof()
Deprecated.
|
int |
read()
Deprecated.
|
int |
read(byte[] b)
Deprecated.
|
int |
read(byte[] b,
int off,
int len)
Deprecated.
|
java.lang.String |
readLine()
Deprecated.
|
int |
readLine(org.apache.http.util.CharArrayBuffer buffer)
Deprecated.
|
private final org.apache.http.io.SessionInputBuffer in
private final org.apache.http.io.EofSensor eofSensor
private final Wire wire
private final java.lang.String charset
public LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in,
Wire wire,
java.lang.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 java.io.IOException
isDataAvailable in interface org.apache.http.io.SessionInputBufferjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in interface org.apache.http.io.SessionInputBufferjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in interface org.apache.http.io.SessionInputBufferjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in interface org.apache.http.io.SessionInputBufferjava.io.IOExceptionpublic java.lang.String readLine()
throws java.io.IOException
readLine in interface org.apache.http.io.SessionInputBufferjava.io.IOExceptionpublic int readLine(org.apache.http.util.CharArrayBuffer buffer)
throws java.io.IOException
readLine in interface org.apache.http.io.SessionInputBufferjava.io.IOExceptionpublic org.apache.http.io.HttpTransportMetrics getMetrics()
getMetrics in interface org.apache.http.io.SessionInputBufferpublic boolean isEof()
isEof in interface org.apache.http.io.EofSensor