Class StreamCompressor.SeekableByteChannelCompressor
java.lang.Object
org.apache.commons.compress.archivers.zip.StreamCompressor
org.apache.commons.compress.archivers.zip.StreamCompressor.SeekableByteChannelCompressor
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
StreamCompressor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSeekableByteChannelCompressor(Deflater deflater, SeekableByteChannel channel) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteOut(byte[] data, int offset, int length) Writeslenbytes from the specified byte array starting at offsetoffto the output stream.Methods inherited from class org.apache.commons.compress.archivers.zip.StreamCompressor
close, create, create, create, create, create, create, deflate, deflate, flushDeflater, getBytesRead, getBytesWrittenForLastEntry, getCrc32, getTotalBytesWritten, reset, write, writeCounted, writeCounted
-
Field Details
-
channel
-
-
Constructor Details
-
SeekableByteChannelCompressor
SeekableByteChannelCompressor(Deflater deflater, SeekableByteChannel channel)
-
-
Method Details
-
writeOut
Description copied from class:StreamCompressorWriteslenbytes from the specified byte array starting at offsetoffto the output stream.- Specified by:
writeOutin classStreamCompressor- Parameters:
data- the data.offset- the start offset in the data.length- the number of bytes to write.- Throws:
IOException- if an I/O error occurs.
-