Package fr.gouv.vitam.common.stream

# Class MultiplexedStreamReader

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

All Implemented Interfaces:
  `AutoCloseable`

public class MultiplexedStreamReader extends Object implements 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 final long`
  `EOF_MARKER`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MultiplexedStreamReader(InputStream dataInputStream)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `Optional<ExactSizeInputStream>`
  `readNextEntry()`

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

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

- ## Field Details

  - ### EOF_MARKER

    public static final long EOF_MARKER
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### MultiplexedStreamReader

    public MultiplexedStreamReader(InputStream dataInputStream)

- ## Method Details

  - ### readNextEntry

    public Optional<ExactSizeInputStream> readNextEntry() throws IOException
    Throws:
      `IOException`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Throws:
      `IOException`