Class DeferredScatterOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.commons.compress.parallel.ScatterGatherBackingStore

    public class DeferredScatterOutputStream
    extends java.lang.Object
    implements org.apache.commons.compress.parallel.ScatterGatherBackingStore
    • Constructor Detail

      • DeferredScatterOutputStream

        public DeferredScatterOutputStream​(int threshold)
    • Method Detail

      • getInputStream

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

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

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

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException