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.EofSensorDeprecated.(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.StringcharsetDeprecated.private org.apache.http.io.EofSensoreofSensorDeprecated.private org.apache.http.io.SessionInputBufferinDeprecated.Original session input buffer.private WirewireDeprecated.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.HttpTransportMetricsgetMetrics()Deprecated.booleanisDataAvailable(int timeout)Deprecated.booleanisEof()Deprecated.intread()Deprecated.intread(byte[] b)Deprecated.intread(byte[] b, int off, int len)Deprecated.java.lang.StringreadLine()Deprecated.intreadLine(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,ASCIIifnull
-
LoggingSessionInputBuffer
public LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in, Wire wire)Deprecated.
-
-
Method Detail
-
isDataAvailable
public boolean isDataAvailable(int timeout) throws java.io.IOExceptionDeprecated.- Specified by:
isDataAvailablein interfaceorg.apache.http.io.SessionInputBuffer- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOExceptionDeprecated.- Specified by:
readin interfaceorg.apache.http.io.SessionInputBuffer- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOExceptionDeprecated.- Specified by:
readin interfaceorg.apache.http.io.SessionInputBuffer- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOExceptionDeprecated.- Specified by:
readin interfaceorg.apache.http.io.SessionInputBuffer- Throws:
java.io.IOException
-
readLine
public java.lang.String readLine() throws java.io.IOExceptionDeprecated.- Specified by:
readLinein interfaceorg.apache.http.io.SessionInputBuffer- Throws:
java.io.IOException
-
readLine
public int readLine(org.apache.http.util.CharArrayBuffer buffer) throws java.io.IOExceptionDeprecated.- Specified by:
readLinein interfaceorg.apache.http.io.SessionInputBuffer- Throws:
java.io.IOException
-
getMetrics
public org.apache.http.io.HttpTransportMetrics getMetrics()
Deprecated.- Specified by:
getMetricsin interfaceorg.apache.http.io.SessionInputBuffer
-
isEof
public boolean isEof()
Deprecated.- Specified by:
isEofin interfaceorg.apache.http.io.EofSensor
-
-