|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream javax.servlet.ServletInputStream org.apache.catalina.connector.RequestStream org.apache.catalina.connector.http.HttpRequestStream
Field Summary | |
protected boolean |
chunk
Deprecated. Use chunking ? |
protected byte[] |
chunkBuffer
Deprecated. Chunk buffer. |
protected int |
chunkLength
Deprecated. Chunk length. |
protected int |
chunkPos
Deprecated. Chunk buffer position. |
protected boolean |
endChunk
Deprecated. True if the final chunk was found. |
protected boolean |
http11
Deprecated. HTTP/1.1 flag. |
Fields inherited from class org.apache.catalina.connector.RequestStream |
closed, count, length, sm, stream |
Constructor Summary | |
HttpRequestStream(org.apache.catalina.connector.http.HttpRequestImpl request,
org.apache.catalina.connector.http.HttpResponseImpl response)
Deprecated. Construct a servlet input stream associated with the specified Request. |
Method Summary | |
void |
close()
Deprecated. Close this input stream. |
int |
read()
Deprecated. Read and return a single byte from this input stream, or -1 if end of file has been encountered. |
int |
read(byte[] b,
int off,
int len)
Deprecated. Read up to len bytes of data from the input stream
into an array of bytes. |
Methods inherited from class org.apache.catalina.connector.RequestStream |
read |
Methods inherited from class javax.servlet.ServletInputStream |
readLine |
Methods inherited from class java.io.InputStream |
available, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean chunk
protected boolean endChunk
protected byte[] chunkBuffer
protected int chunkLength
protected int chunkPos
protected boolean http11
Constructor Detail |
public HttpRequestStream(org.apache.catalina.connector.http.HttpRequestImpl request, org.apache.catalina.connector.http.HttpResponseImpl response)
request
- The associated requestresponse
- The associated responseMethod Detail |
public void close() throws java.io.IOException
close
in class RequestStream
java.io.IOException
public int read() throws java.io.IOException
read
in class RequestStream
java.io.IOException
- if an input/output error occurspublic int read(byte[] b, int off, int len) throws java.io.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 RequestStream
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 read
java.io.IOException
- if an input/output error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |