Class ChunkedInputStream
java.lang.Object
java.io.InputStream
org.sblim.cimclient.internal.http.io.ChunkedInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
Class ChunkedInputStream implements an input stream for chunked messages
-
Constructor Summary
ConstructorsConstructorDescriptionChunkedInputStream(InputStream pStream, String pTrailerFields) Ctor.ChunkedInputStream(InputStream pStream, String pTrailerFields, String pOrigin) Ctor. -
Method Summary
Methods inherited from class InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
ChunkedInputStream
Ctor.- Parameters:
pStream- The stream to create this one uponpTrailerFields- The names of trailer fields
-
ChunkedInputStream
Ctor.- Parameters:
pStream- The stream to create this one uponpTrailerFields- The names of trailer fieldspOrigin- The origin of the stream (response, indication request, etc.)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
getTrailers
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
public int available()- Overrides:
availablein classInputStream- Returns:
- int
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-