Class MultiplePipedInputStream

java.lang.Object
fr.gouv.vitam.common.stream.MultiplePipedInputStream
All Implemented Interfaces:
VitamAutoCloseable, AutoCloseable

public class MultiplePipedInputStream extends Object implements VitamAutoCloseable
Generate multiples InputStreams from one to many using Pipe
  • Constructor Details

    • MultiplePipedInputStream

      public MultiplePipedInputStream(InputStream source, int nbCopy)
      Create one MultipleInputStreamHandler from one InputStream and make nbCopy linked InputStreams
      Parameters:
      source -
      nbCopy -
      Throws:
      IllegalArgumentException - if source is null or nbCopy <= 0 or global service is down
  • Method Details