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 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 final String
    Deprecated.
     
    private final org.apache.http.io.EofSensor
    Deprecated.
     
    private final org.apache.http.io.SessionInputBuffer
    Deprecated.
    Original session input buffer.
    private final 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, String charset)
    Deprecated.
    Create an instance that wraps the specified session input buffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.http.io.HttpTransportMetrics
    Deprecated.
     
    boolean
    isDataAvailable(int timeout)
    Deprecated.
     
    boolean
    Deprecated.
     
    int
    Deprecated.
     
    int
    read(byte[] b)
    Deprecated.
     
    int
    read(byte[] b, int off, int len)
    Deprecated.
     
    Deprecated.
     
    int
    readLine(org.apache.http.util.CharArrayBuffer buffer)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 String charset
      Deprecated.
  • Constructor Details

    • LoggingSessionInputBuffer

      public LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in, Wire wire, 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 if null
    • LoggingSessionInputBuffer

      public LoggingSessionInputBuffer(org.apache.http.io.SessionInputBuffer in, Wire wire)
      Deprecated.
  • Method Details

    • isDataAvailable

      public boolean isDataAvailable(int timeout) throws IOException
      Deprecated.
      Specified by:
      isDataAvailable in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • read

      public int read(byte[] b, int off, int len) throws IOException
      Deprecated.
      Specified by:
      read in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • read

      public int read() throws IOException
      Deprecated.
      Specified by:
      read in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • read

      public int read(byte[] b) throws IOException
      Deprecated.
      Specified by:
      read in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • readLine

      public String readLine() throws IOException
      Deprecated.
      Specified by:
      readLine in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • readLine

      public int readLine(org.apache.http.util.CharArrayBuffer buffer) throws IOException
      Deprecated.
      Specified by:
      readLine in interface org.apache.http.io.SessionInputBuffer
      Throws:
      IOException
    • getMetrics

      public org.apache.http.io.HttpTransportMetrics getMetrics()
      Deprecated.
      Specified by:
      getMetrics in interface org.apache.http.io.SessionInputBuffer
    • isEof

      public boolean isEof()
      Deprecated.
      Specified by:
      isEof in interface org.apache.http.io.EofSensor