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 int
available()
void
close()
int
read()
int
read(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:
read
in classInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
-