Package fr.gouv.vitam.common.stream
Class MultiplexedStreamWriter
- java.lang.Object
-
- fr.gouv.vitam.common.stream.MultiplexedStreamWriter
-
public class MultiplexedStreamWriter extends java.lang.Object
Write for multiplexed streams. Stream format is "SIZE1(long)DATA1(raw)SIZE2(long)DATA2(raw)..."
-
-
Constructor Summary
Constructors Constructor Description MultiplexedStreamWriter(java.io.OutputStream outputStream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendEndOfFile()
void
appendEntry(long size, java.io.InputStream inputStream)
static long
getTotalStreamSize(java.util.List<java.lang.Long> fileSizes)
-
-
-
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)
-
-