Package fr.gouv.vitam.common.stream

# Class MultiplexedStreamWriter

java.lang.Object
fr.gouv.vitam.common.stream.MultiplexedStreamWriter

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MultiplexedStreamWriter(OutputStream outputStream)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `appendEndOfFile()`
  `void`
  `appendEntry(long size, InputStream inputStream)`
  `static long`
  `getTotalStreamSize(List<Long> fileSizes)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MultiplexedStreamWriter

    public MultiplexedStreamWriter(OutputStream outputStream)

- ## Method Details

  - ### appendEntry

    public void appendEntry(long size, InputStream inputStream) throws IOException
    Throws:
      `IOException`

  - ### appendEndOfFile

    public void appendEndOfFile() throws IOException
    Throws:
      `IOException`

  - ### getTotalStreamSize

    public static long getTotalStreamSize(List<Long> fileSizes)