|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--org.apache.webdav.lib.ResponseInputStream
Socket input stream wrapper.
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 |
closed
Has this stream been closed? |
protected int |
count
The number of bytes which have already been returned by this stream. |
protected boolean |
endChunk
True if the final chunk was found. |
protected int |
length
The content length past which we will not read, or -1 if there is no defined content length. |
protected java.io.InputStream |
stream
The underlying input stream from which we should read data. |
Constructor Summary | |
ResponseInputStream(java.io.InputStream stream,
java.util.Hashtable responseHeaders)
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 |
available, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected boolean closed
protected boolean chunk
protected boolean endChunk
protected byte[] chunkBuffer
protected int chunkLength
protected int chunkPos
protected int count
protected int length
protected java.io.InputStream stream
Constructor Detail |
public ResponseInputStream(java.io.InputStream stream, java.util.Hashtable responseHeaders)
request
- The associated requestMethod Detail |
public void close() throws java.io.IOException
close
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- if an input/output error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |