Package org.apache.http.impl.conn
Class LoggingSessionInputBuffer
- java.lang.Object
-
- org.apache.http.impl.conn.LoggingSessionInputBuffer
-
- All Implemented Interfaces:
org.apache.http.io.EofSensor
,org.apache.http.io.SessionInputBuffer
@Contract(threading=IMMUTABLE) @Deprecated public class LoggingSessionInputBuffer extends java.lang.Object implements org.apache.http.io.SessionInputBuffer, org.apache.http.io.EofSensor
Deprecated.(4.3) no longer used.Logs all data read to the wire LOG.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
in
private final org.apache.http.io.SessionInputBuffer in
Deprecated.Original session input buffer.
-
eofSensor
private final org.apache.http.io.EofSensor eofSensor
Deprecated.
-
wire
private final Wire wire
Deprecated.The wire log to use for writing.
-
charset
private final java.lang.String charset
Deprecated.
-
-
Constructor Detail
-
LoggingSessionInputBuffer
public LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in, Wire wire, java.lang.String charset)
Deprecated.Create an instance that wraps the specified session input buffer.- Parameters:
in
- The session input buffer.wire
- The wire log to use.charset
- protocol charset,ASCII
ifnull
-
LoggingSessionInputBuffer
public LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in, Wire wire)
Deprecated.
-
-
Method Detail
-
isDataAvailable
public boolean isDataAvailable(int timeout) throws java.io.IOException
Deprecated.- Specified by:
isDataAvailable
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
Deprecated.- Specified by:
read
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
Deprecated.- Specified by:
read
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException
Deprecated.- Specified by:
read
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
java.io.IOException
-
readLine
public java.lang.String readLine() throws java.io.IOException
Deprecated.- Specified by:
readLine
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
java.io.IOException
-
readLine
public int readLine(org.apache.http.util.CharArrayBuffer buffer) throws java.io.IOException
Deprecated.- Specified by:
readLine
in interfaceorg.apache.http.io.SessionInputBuffer
- Throws:
java.io.IOException
-
getMetrics
public org.apache.http.io.HttpTransportMetrics getMetrics()
Deprecated.- Specified by:
getMetrics
in interfaceorg.apache.http.io.SessionInputBuffer
-
isEof
public boolean isEof()
Deprecated.- Specified by:
isEof
in interfaceorg.apache.http.io.EofSensor
-
-