org.apache.catalina.connector.http
Class HttpRequestStream
java.lang.Object
|
+--java.io.InputStream
|
+--javax.servlet.ServletInputStream
|
+--org.apache.catalina.connector.RequestStream
|
+--org.apache.catalina.connector.http.HttpRequestStream
- public class HttpRequestStream
- extends RequestStream
- Author:
- Remy Maucherat
Field Summary |
protected boolean |
chunk
Use chunking ? |
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. |
Constructor Summary |
HttpRequestStream(org.apache.catalina.connector.http.HttpRequestImpl request,
org.apache.catalina.connector.http.HttpResponseImpl response)
Construct a servlet input stream associated with the specified Request. |
Method Summary |
void |
close()
Close this input stream. |
int |
read()
Read and return a single byte from this input stream, or -1 if end of
file has been encountered. |
Methods inherited from class java.io.InputStream |
mark, markSupported, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
chunk
protected boolean chunk
- Use chunking ?
endChunk
protected boolean endChunk
- True if the final chunk was found.
chunkBuffer
protected byte[] chunkBuffer
- Chunk buffer.
chunkLength
protected int chunkLength
- Chunk length.
chunkPos
protected int chunkPos
- Chunk buffer position.
HttpRequestStream
public HttpRequestStream(org.apache.catalina.connector.http.HttpRequestImpl request,
org.apache.catalina.connector.http.HttpResponseImpl response)
- Construct a servlet input stream associated with the specified Request.
- Parameters:
request
- The associated requestresponse
- The associated response
close
public void close()
throws java.io.IOException
- 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.
- Overrides:
close
in class RequestStream
- Following copied from class:
org.apache.catalina.connector.RequestStream
- Throws:
java.io.IOException
- if an input/output error occurs
read
public int read()
throws java.io.IOException
- Read and return a single byte from this input stream, or -1 if end of
file has been encountered.
- Overrides:
read
in class RequestStream
- Throws:
java.io.IOException
- if an input/output error occurs
Copyright © 2000 Apache Software Foundation. All Rights Reserved.