com.noelios.restlet.http
Class ChunkedInputStream
java.lang.Object
java.io.InputStream
com.noelios.restlet.http.ChunkedInputStream
- All Implemented Interfaces:
- Closeable
public class ChunkedInputStream
- extends InputStream
InputStream to wrap a source InputStream that has been
chunked. See section 3.6.1 of HTTP Protocol for more information on chunked
encoding.
- Author:
- Kevin Conaway
- See Also:
- HTTP/1.1
Protocol
|
Method Summary |
void |
close()
Close this input stream but do not close the underlying stream. |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkedInputStream
public ChunkedInputStream(InputStream source)
- Constructor.
- Parameters:
source - Source InputStream to read from
close
public void close()
throws IOException
- Close this input stream but do not close the underlying stream.
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
- Throws:
IOException
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
Copyright © 2005-2008 Noelios Technologies.