| org.apache.catalina.connector.RequestStream org.apache.catalina.connector.http.HttpRequestStream
Field Summary | |
protected boolean | chunk | protected byte[] | chunkBuffer Chunk buffer. | protected int | chunkLength Chunk length. | protected int | chunkPos Chunk buffer position. | protected boolean | endChunk True if the final chunk was found. | protected boolean | http11 HTTP/1.1 flag. |
Method Summary | |
public void | close() Close this input stream. | public int | read() Read and return a single byte from this input stream, or -1 if end of
file has been encountered. | public int | read(byte b, int off, int len) Read up to len bytes of data from the input stream
into an array of bytes. |
chunk | protected boolean chunk(Code) | | Use chunking ?
|
chunkBuffer | protected byte[] chunkBuffer(Code) | | Chunk buffer.
|
chunkLength | protected int chunkLength(Code) | | Chunk length.
|
chunkPos | protected int chunkPos(Code) | | Chunk buffer position.
|
endChunk | protected boolean endChunk(Code) | | True if the final chunk was found.
|
http11 | protected boolean http11(Code) | | HTTP/1.1 flag.
|
HttpRequestStream | public HttpRequestStream(HttpRequestImpl request, HttpResponseImpl response)(Code) | | Construct a servlet input stream associated with the specified Request.
Parameters: request - The associated request Parameters: response - The associated response |
close | public void close() throws IOException(Code) | | Close this input stream. No physical level I-O is performed, but
any further attempt to read from this stream will throw an IOException.
If a content length has been set but not all of the bytes have yet been
consumed, the remaining bytes will be swallowed.
|
read | public int read() throws IOException(Code) | | Read and return a single byte from this input stream, or -1 if end of
file has been encountered.
exception: IOException - if an input/output error occurs |
read | public int read(byte b, int off, int len) throws IOException(Code) | | Read up to 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.
Parameters: b - The buffer into which the data is read Parameters: off - The start offset into array b at whichthe data is written Parameters: len - The maximum number of bytes to read exception: IOException - if an input/output error occurs |
|
|