public class

SocketInputBuffer

extends AbstractSessionInputBuffer
implements EofSensor
java.lang.Object
   ↳ org.apache.http.impl.io.AbstractSessionInputBuffer
     ↳ org.apache.http.impl.io.SocketInputBuffer

Class Overview

SessionInputBuffer implementation bound to a Socket.

The following parameters can be used to customize the behavior of this class:

Summary

Public Constructors
SocketInputBuffer(Socket socket, int buffersize, HttpParams params)
Creates an instance of this class.
Public Methods
boolean isDataAvailable(int timeout)
boolean isEof()
Protected Methods
int fillBuffer()
[Expand]
Inherited Methods
From class org.apache.http.impl.io.AbstractSessionInputBuffer
From class java.lang.Object
From interface org.apache.http.io.BufferInfo
From interface org.apache.http.io.EofSensor
From interface org.apache.http.io.SessionInputBuffer

Public Constructors

public SocketInputBuffer (Socket socket, int buffersize, HttpParams params)

Creates an instance of this class.

Parameters
socket the socket to read data from.
buffersize the size of the internal buffer. If this number is less than 0 it is set to the value of getReceiveBufferSize(). If resultant number is less than 1024 it is set to 1024.
params HTTP parameters.
Throws
IOException

Public Methods

public boolean isDataAvailable (int timeout)

Throws
IOException

public boolean isEof ()

Protected Methods

protected int fillBuffer ()

Throws
IOException