Class MultiplexedStreamReader

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class MultiplexedStreamReader
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Reader for multiplexed streams. Stream format is "SIZE1(long)DATA1(raw)SIZE2(long)DATA2(raw)..."
    • Constructor Detail

      • MultiplexedStreamReader

        public MultiplexedStreamReader​(java.io.InputStream dataInputStream)
    • Method Detail

      • readNextEntry

        public java.util.Optional<ExactSizeInputStream> readNextEntry()
                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException