Package com.jcraft.jzlib
Class DeflaterOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.jcraft.jzlib.DeflaterOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
FieldsFields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected int
deflate
(int flush) void
finish()
void
flush()
boolean
long
long
protected void
jzSetDOS
(OutputStream out, Deflater deflater, int size, boolean close_out) void
setSyncFlush
(boolean syncFlush) void
write
(byte[] b, int off, int len) void
writeByteAsInt
(int b) Methods inherited from class java.io.FilterOutputStream
write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
deflater
-
buffer
protected byte[] buffer -
mydeflater
protected boolean mydeflater
-
-
Constructor Details
-
DeflaterOutputStream
public DeflaterOutputStream()
-
-
Method Details
-
jzSetDOS
- Parameters:
out
-deflater
-size
-close_out
- throws IOException
-
writeByteAsInt
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
finish
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-
deflate
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterOutputStream
- Throws:
IOException
-
getTotalIn
public long getTotalIn() -
getTotalOut
public long getTotalOut() -
setSyncFlush
public void setSyncFlush(boolean syncFlush) -
getSyncFlush
public boolean getSyncFlush() -
getDeflater
-