Class DeferredFileBufferingInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
fr.gouv.vitam.workspace.client.DeferredFileBufferingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class DeferredFileBufferingInputStream extends org.apache.commons.io.input.ProxyInputStream
An input stream that buffers data in memory for small sizes, and to a temporary file otherwise. Any temporary file will be deleted when stream is closed, or if initialization fails in constructor.
  • Constructor Details

    • DeferredFileBufferingInputStream

      public DeferredFileBufferingInputStream(InputStream sourceInputStream, long sourceSize, int maxInMemoryBufferSize, File tmpDirectory) throws IOException
      Throws:
      IOException
  • Method Details