Package fr.gouv.vitam.common.stream
Class MultiplexedStreamReader
- java.lang.Object
-
- fr.gouv.vitam.common.stream.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)..."
-
-
Field Summary
Fields Modifier and Type Field Description static long
EOF_MARKER
-
Constructor Summary
Constructors Constructor Description MultiplexedStreamReader(java.io.InputStream dataInputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.util.Optional<ExactSizeInputStream>
readNextEntry()
-
-
-
Field Detail
-
EOF_MARKER
public static final long EOF_MARKER
- See Also:
- Constant Field Values
-
-
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 interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
-
-