org.apache.http.impl.io
Class SocketInputBuffer

java.lang.Object
  extended by org.apache.http.impl.io.AbstractSessionInputBuffer
      extended by org.apache.http.impl.io.SocketInputBuffer
All Implemented Interfaces:
EofSensor, SessionInputBuffer

public class SocketInputBuffer
extends AbstractSessionInputBuffer
implements EofSensor

Socket bound session input buffer.

Since:
4.0
Version:
$Revision: 678837 $
Author:
Oleg Kalnichevski

Constructor Summary
SocketInputBuffer(java.net.Socket socket, int buffersize, HttpParams params)
           
 
Method Summary
protected  int fillBuffer()
           
 boolean isDataAvailable(int timeout)
           
 boolean isEof()
           
 
Methods inherited from class org.apache.http.impl.io.AbstractSessionInputBuffer
getMetrics, hasBufferedData, init, 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

SocketInputBuffer

public SocketInputBuffer(java.net.Socket socket,
                         int buffersize,
                         HttpParams params)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

fillBuffer

protected int fillBuffer()
                  throws java.io.IOException
Overrides:
fillBuffer in class AbstractSessionInputBuffer
Throws:
java.io.IOException

isDataAvailable

public boolean isDataAvailable(int timeout)
                        throws java.io.IOException
Specified by:
isDataAvailable in interface SessionInputBuffer
Throws:
java.io.IOException

isEof

public boolean isEof()
Specified by:
isEof in interface EofSensor


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.