org.apache.http.impl.io
Class SocketHttpDataReceiver

java.lang.Object
  extended by org.apache.http.impl.io.AbstractHttpDataReceiver
      extended by org.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: 547802 $
Author:
Oleg Kalnichevski

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

SocketHttpDataReceiver

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

isDataAvailable

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


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