org.mortbay.http
public class HttpInputStream extends FilterInputStream
Version: $Id: HttpInputStream.java,v 1.13 2005/08/23 20:02:26 gregwilkins Exp $
See Also: LineInput
Constructor Summary | |
---|---|
HttpInputStream(InputStream in) Constructor. | |
HttpInputStream(InputStream in, int bufferSize) Constructor. |
Method Summary | |
---|---|
void | close() |
void | destroy() |
int | getContentLength() Get the content length. |
OutputStream | getExpectContinues() |
InputStream | getFilterStream() Get Filter InputStream.
|
InputStream | getInputStream() Get the raw stream.
|
HttpFields | getTrailer() |
boolean | isChunking() Get chunking mode |
int | read() |
int | read(byte[] b, int off, int len) |
int | read(byte[] b) |
void | resetStream() Reset the stream.
|
void | setChunking() Set chunking mode.
|
void | setContentLength(int len) Set the content length.
|
void | setExpectContinues(OutputStream expectContinues) |
void | setFilterStream(InputStream filter) Set Filter InputStream.
|
long | skip(long n) |
Returns: Number of bytes until EOF is returned or -1 for no limit.
Parameters: expectContinues The expectContinues to set.
Returns: InputStream.
Returns: Raw InputStream.
Throws: IllegalStateException The stream cannot be reset if there is some unread chunked input or a content length greater than zero remaining.
Throws: IllegalStateException Checking cannot be set if a content length has been set.
Parameters: len length.
Parameters: expectContinues The expectContinues to set.