Class Overview
SessionInputBuffer
implementation bound to a Socket.
The following parameters can be used to customize the behavior of this
class:
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.
|
Public Methods
public
boolean
isDataAvailable
(int timeout)
Protected Methods
protected
int
fillBuffer
()