Package com.predic8.membrane.core.http
Class BodyInputStream
java.lang.Object
java.io.InputStream
com.predic8.membrane.core.http.BodyInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An
InputStream offering a List<Chunk> as one
single stream.
Used by AbstractBody to offer an efficient way of reading a message's
body.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
BodyInputStream
-
-
Method Details
-
readNextChunk
- Returns:
- the next chunk or null, if there is no next chunk
- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-