Deprecated
(4.3) use SessionInputBufferImpl
org.apache.http.io.SessionInputBuffer implementation
bound to a Socket.
| Access | Constructor and Description |
|---|---|
| public | SocketInputBuffer(final Socket
the socket to read data from. socket, final int the size of the internal buffer. If this number is less
than bufferSize, final HttpParams 0 it is set to the value of
Socket#getReceiveBufferSize(). If resultant number is less
than 1024 it is set to 1024.HTTP parameters. params)
Deprecated
as a consequence of
Creates an instance of this class.
HttpParams being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| public boolean | isDataAvailable(final int
in milliseconds. timeout)Implements org. |
| public boolean |
| eof | back to summary |
|---|---|
| private boolean eof | |
| socket | back to summary |
|---|---|
| private final Socket socket | |
| SocketInputBuffer | back to summary |
|---|---|
| public SocketInputBuffer(final Socket socket, final int bufferSize, final HttpParams params) throws IOException
Deprecated as a consequence of Creates an instance of this class.
| |
| fillBuffer | back to summary |
|---|---|
| protected int fillBuffer() throws IOException Overrides org.
| |
| isDataAvailable | back to summary |
|---|---|
| public boolean isDataAvailable(final int timeout) throws IOException Implements org. Doc from org. Blocks until some data becomes available in the session buffer or the
given timeout period in milliseconds elapses. If the timeout value is
| |
| isEof | back to summary |
|---|---|
| public boolean isEof() Implements org.
| |