|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.io.AbstractSessionInputBuffer org.apache.http.impl.io.SocketInputBuffer
SessionInputBufferImpl
@Deprecated public class SocketInputBuffer
SessionInputBuffer
implementation
bound to a Socket
.
Constructor Summary | |
---|---|
SocketInputBuffer(Socket socket,
int bufferSize,
HttpParams params)
Deprecated. Creates an instance of this class. |
Method Summary | |
---|---|
protected int |
fillBuffer()
Deprecated. |
boolean |
isDataAvailable(int timeout)
Deprecated. Blocks until some data becomes available in the session buffer or the given timeout period in milliseconds elapses. |
boolean |
isEof()
Deprecated. |
Methods inherited from class org.apache.http.impl.io.AbstractSessionInputBuffer |
---|
available, capacity, createTransportMetrics, getMetrics, hasBufferedData, init, length, read, read, read, readLine, readLine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocketInputBuffer(Socket socket, int bufferSize, HttpParams params) throws IOException
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
Socket.getReceiveBufferSize()
. If resultant number is less
than 1024
it is set to 1024
.params
- HTTP parameters.
IOException
Method Detail |
---|
protected int fillBuffer() throws IOException
fillBuffer
in class AbstractSessionInputBuffer
IOException
public boolean isDataAvailable(int timeout) throws IOException
SessionInputBuffer
0
this method blocks indefinitely.
isDataAvailable
in interface SessionInputBuffer
timeout
- in milliseconds.
true
if some data is available in the session
buffer or false
otherwise.
IOException
- if an I/O error occurs.public boolean isEof()
isEof
in interface EofSensor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |