Class DeflaterOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- net.lingala.zip4j.io.outputstream.CompressedOutputStream
-
- net.lingala.zip4j.io.outputstream.DeflaterOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
class DeflaterOutputStream extends CompressedOutputStream
-
-
Constructor Summary
Constructors Constructor Description DeflaterOutputStream(CipherOutputStream<?> cipherOutputStream, CompressionLevel compressionLevel, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseEntry()private voiddeflate()voidwrite(byte[] b)voidwrite(byte[] buf, int off, int len)voidwrite(int bval)-
Methods inherited from class net.lingala.zip4j.io.outputstream.CompressedOutputStream
close, getCompressedSize
-
-
-
-
Constructor Detail
-
DeflaterOutputStream
public DeflaterOutputStream(CipherOutputStream<?> cipherOutputStream, CompressionLevel compressionLevel, int bufferSize)
-
-
Method Detail
-
write
public void write(byte[] b) throws java.io.IOException- Overrides:
writein classCompressedOutputStream- Throws:
java.io.IOException
-
write
public void write(int bval) throws java.io.IOException- Overrides:
writein classCompressedOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] buf, int off, int len) throws java.io.IOException- Overrides:
writein classCompressedOutputStream- Throws:
java.io.IOException
-
deflate
private void deflate() throws java.io.IOException- Throws:
java.io.IOException
-
closeEntry
public void closeEntry() throws java.io.IOException- Overrides:
closeEntryin classCompressedOutputStream- Throws:
java.io.IOException
-
-