Class ChunkedDeserializingMessage.StreamingInputStream

java.lang.Object
java.io.InputStream
io.fluxzero.sdk.common.serialization.ChunkedDeserializingMessage.StreamingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
ChunkedDeserializingMessage

protected class ChunkedDeserializingMessage.StreamingInputStream extends InputStream
  • 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

      public void fail(Throwable error)
      Queues a terminal failure after the previously queued chunks, to be observed by the reader.
    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • read

      public int read(byte[] buffer, int off, int len) throws IOException
      Overrides:
      read in class InputStream
      Throws:
      IOException