Class DeferredScatterOutputStream

java.lang.Object
org.codehaus.plexus.archiver.zip.DeferredScatterOutputStream
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.commons.compress.parallel.ScatterGatherBackingStore

public class DeferredScatterOutputStream extends Object implements org.apache.commons.compress.parallel.ScatterGatherBackingStore
  • Constructor Details

    • DeferredScatterOutputStream

      public DeferredScatterOutputStream(int threshold)
  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface org.apache.commons.compress.parallel.ScatterGatherBackingStore
      Throws:
      IOException
    • writeOut

      public void writeOut(byte[] data, int offset, int length) throws IOException
      Specified by:
      writeOut in interface org.apache.commons.compress.parallel.ScatterGatherBackingStore
      Throws:
      IOException
    • closeForWriting

      public void closeForWriting() throws IOException
      Specified by:
      closeForWriting in interface org.apache.commons.compress.parallel.ScatterGatherBackingStore
      Throws:
      IOException
    • close

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