public class

LoggingSessionInputBuffer

extends Object
implements EofSensor SessionInputBuffer
java.lang.Object
   ↳ org.apache.http.impl.conn.LoggingSessionInputBuffer

Class Overview

Logs all data read to the wire LOG.

Summary

Public Constructors
LoggingSessionInputBuffer(SessionInputBuffer in, Wire wire, String charset)
Create an instance that wraps the specified session input buffer.
LoggingSessionInputBuffer(SessionInputBuffer in, Wire wire)
Public Methods
HttpTransportMetrics getMetrics()
boolean isDataAvailable(int timeout)
boolean isEof()
int read(byte[] b)
int read()
int read(byte[] b, int off, int len)
int readLine(CharArrayBuffer buffer)
String readLine()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.io.EofSensor
From interface org.apache.http.io.SessionInputBuffer

Public Constructors

public LoggingSessionInputBuffer (SessionInputBuffer in, Wire wire, String charset)

Also: HttpClient

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

public LoggingSessionInputBuffer (SessionInputBuffer in, Wire wire)

Also: HttpClient

Public Methods

public HttpTransportMetrics getMetrics ()

Also: HttpClient

public boolean isDataAvailable (int timeout)

Also: HttpClient

Throws
IOException

public boolean isEof ()

Also: HttpClient

public int read (byte[] b)

Also: HttpClient

Throws
IOException

public int read ()

Also: HttpClient

Throws
IOException

public int read (byte[] b, int off, int len)

Also: HttpClient

Throws
IOException

public int readLine (CharArrayBuffer buffer)

Also: HttpClient

Throws
IOException

public String readLine ()

Also: HttpClient

Throws
IOException