Package org.globus.util.http
Class HTTPChunkedInputStream
java.lang.Object
java.io.InputStream
org.globus.util.http.HTTPChunkedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
_buf
protected byte[] _buf -
_index
protected int _index -
_max
protected int _max -
_eof
protected boolean _eof -
_in
-
-
Constructor Details
-
HTTPChunkedInputStream
-
-
Method Details
-
readChunk
- Throws:
IOException
-
readLine
Read a line of text from the given Stream and return it as a String. Assumes lines end in CRLF.- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-