org.apache.http.io
Interface HttpDataReceiver
- All Known Implementing Classes:
- AbstractHttpDataReceiver, SocketHttpDataReceiver
public interface HttpDataReceiver
Interface for receiving data.
Unlike InputStream
, this interface is tailored
to the needs of the HTTP components.
- Since:
- 4.0
- Version:
- $Revision: 547802 $
- Author:
- Oleg Kalnichevski
read
int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
read
int read(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
read
int read()
throws java.io.IOException
- Throws:
java.io.IOException
readLine
int readLine(CharArrayBuffer buffer)
throws java.io.IOException
- Throws:
java.io.IOException
readLine
java.lang.String readLine()
throws java.io.IOException
- Throws:
java.io.IOException
isDataAvailable
boolean isDataAvailable(int timeout)
throws java.io.IOException
- Throws:
java.io.IOException
getMetrics
HttpTransportMetrics getMetrics()
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.