Package org.codehaus.plexus.archiver.zip
Class DeferredScatterOutputStream
- java.lang.Object
-
- org.codehaus.plexus.archiver.zip.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 Summary
Constructors Constructor Description DeferredScatterOutputStream(int threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcloseForWriting()java.io.InputStreamgetInputStream()voidwriteOut(byte[] data, int offset, int length)
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceorg.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:
writeOutin interfaceorg.apache.commons.compress.parallel.ScatterGatherBackingStore- Throws:
java.io.IOException
-
closeForWriting
public void closeForWriting() throws java.io.IOException- Specified by:
closeForWritingin interfaceorg.apache.commons.compress.parallel.ScatterGatherBackingStore- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-