Class DeflaterOutputStream
java.lang.Object
java.io.OutputStream
net.lingala.zip4j.io.outputstream.CompressedOutputStream
net.lingala.zip4j.io.outputstream.DeflaterOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeflaterOutputStream
(CipherOutputStream<?> cipherOutputStream, CompressionLevel compressionLevel, int bufferSize) -
Method Summary
Methods inherited from class net.lingala.zip4j.io.outputstream.CompressedOutputStream
close, getCompressedSize
Methods inherited from class java.io.OutputStream
flush
-
Field Details
-
buff
private byte[] buff -
deflater
-
-
Constructor Details
-
DeflaterOutputStream
public DeflaterOutputStream(CipherOutputStream<?> cipherOutputStream, CompressionLevel compressionLevel, int bufferSize)
-
-
Method Details
-
write
- Overrides:
write
in classCompressedOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classCompressedOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classCompressedOutputStream
- Throws:
IOException
-
deflate
- Throws:
IOException
-
closeEntry
- Overrides:
closeEntry
in classCompressedOutputStream
- Throws:
IOException
-