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 java.io.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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
getTrailers
Return the http header trailers- Returns:
- The trailers
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
public int available()- Overrides:
available
in classInputStream
- Returns:
- int
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-