Class MultiplexedStreamWriter


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

      • MultiplexedStreamWriter

        public MultiplexedStreamWriter​(java.io.OutputStream outputStream)
    • Method Detail

      • appendEntry

        public void appendEntry​(long size,
                                java.io.InputStream inputStream)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • appendEndOfFile

        public void appendEndOfFile()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getTotalStreamSize

        public static long getTotalStreamSize​(java.util.List<java.lang.Long> fileSizes)