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 void
closeEntry()
private void
deflate()
void
write(byte[] b)
void
write(byte[] buf, int off, int len)
void
write(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:
write
in classCompressedOutputStream
- Throws:
java.io.IOException
-
write
public void write(int bval) throws java.io.IOException
- Overrides:
write
in classCompressedOutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] buf, int off, int len) throws java.io.IOException
- Overrides:
write
in 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:
closeEntry
in classCompressedOutputStream
- Throws:
java.io.IOException
-
-