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 void
close()
void
closeForWriting()
java.io.InputStream
getInputStream()
void
writeOut(byte[] data, int offset, int length)
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Specified by:
getInputStream
in 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:
writeOut
in interfaceorg.apache.commons.compress.parallel.ScatterGatherBackingStore
- Throws:
java.io.IOException
-
closeForWriting
public void closeForWriting() throws java.io.IOException
- Specified by:
closeForWriting
in interfaceorg.apache.commons.compress.parallel.ScatterGatherBackingStore
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-