Package org.globus.util.http
Class HTTPChunkedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.globus.util.http.HTTPChunkedInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class HTTPChunkedInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description HTTPChunkedInputStream(InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()intread()intread(byte[] buffer, int off, int len)-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Field Detail
-
_buf
protected byte[] _buf
-
_index
protected int _index
-
_max
protected int _max
-
_eof
protected boolean _eof
-
_in
protected InputStream _in
-
-
Constructor Detail
-
HTTPChunkedInputStream
public HTTPChunkedInputStream(InputStream in)
-
-
Method Detail
-
read
public int read(byte[] buffer, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-