org.apache.http.impl.io
Class SocketHttpDataReceiver

java.lang.Object
  extended byorg.apache.http.impl.io.AbstractHttpDataReceiver
      extended byorg.apache.http.impl.io.SocketHttpDataReceiver
All Implemented Interfaces:
HttpDataReceiver

public class SocketHttpDataReceiver
extends AbstractHttpDataReceiver

A data receiver using a Java Socket and traditional IO.

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

Constructor Summary
SocketHttpDataReceiver(java.net.Socket socket, int buffersize)
           
 
Method Summary
 boolean isDataAvailable(int timeout)
           
 
Methods inherited from class org.apache.http.impl.io.AbstractHttpDataReceiver
fillBuffer, hasBufferedData, init, read, read, read, readLine, readLine, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketHttpDataReceiver

public SocketHttpDataReceiver(java.net.Socket socket,
                              int buffersize)
                       throws java.io.IOException
Method Detail

isDataAvailable

public boolean isDataAvailable(int timeout)
                        throws java.io.IOException
Throws:
java.io.IOException


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