|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--org.apache.commons.httpclient.ResponseInputStream
InputStream
wrapper supporting the chunked transfer encoding.
Field Summary | |
static Log |
LOG
Deprecated. Log object for this class. |
Constructor Summary | |
ResponseInputStream(InputStream stream,
boolean chunked,
int contentLength)
Deprecated. Use ChunkedInputStream; |
|
ResponseInputStream(InputStream stream,
HttpMethod method)
Deprecated. Use ChunkedInputStream; |
Method Summary | |
void |
close()
Deprecated. Use ChunkedInputStream; |
int |
read()
Deprecated. Use ChunkedInputStream; |
int |
read(byte[] b,
int off,
int len)
Deprecated. Use ChunkedInputStream; |
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final Log LOG
Constructor Detail |
public ResponseInputStream(InputStream stream, boolean chunked, int contentLength)
stream
- Must be non-null.chunked
- true
if the input stream is chunkedcontentLength
- content lengthpublic ResponseInputStream(InputStream stream, HttpMethod method)
stream
- Must be non-null.method
- Must be non-null.Method Detail |
public void close() throws IOException
close
in class InputStream
IOException
- If an IO problem occurs.public int read(byte[] b, int off, int len) throws IOException
len
bytes of data from the input stream
into an array of bytes. An attempt is made to read as many as
len
bytes, but a smaller number may be read,
possibly zero. The number of bytes actually read is returned as
an integer. This method blocks until input data is available,
end of file is detected, or an exception is thrown.read
in class InputStream
b
- The buffer into which the data is readoff
- The start offset into array b
at which
the data is writtenlen
- The maximum number of bytes to readIOException
- if an input/output error occurspublic int read() throws IOException
read
in class InputStream
IOException
- if an input/output error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |