Class ChunkedDeserializingMessage.StreamingInputStream
java.lang.Object
java.io.InputStream
io.fluxzero.sdk.common.serialization.ChunkedDeserializingMessage.StreamingInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
- Enclosing class:
ChunkedDeserializingMessage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(byte[] bytes) Queues content bytes for subsequent reads without copying the supplied array.voidcomplete()Queues an end-of-stream marker after the previously queued chunks.voidQueues a terminal failure after the previously queued chunks, to be observed by the reader.intread()intread(byte[] buffer, int off, int len) Methods inherited from class InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
StreamingInputStream
protected StreamingInputStream(long deadlineMillis)
-
-
Method Details
-
append
public void append(byte[] bytes) Queues content bytes for subsequent reads without copying the supplied array. -
complete
public void complete()Queues an end-of-stream marker after the previously queued chunks. -
fail
Queues a terminal failure after the previously queued chunks, to be observed by the reader. -
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-