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 TypeMethodDescriptionvoidclose()protected intdeflate(int flush) voidfinish()voidflush()booleanlonglongprotected voidjzSetDOS(OutputStream out, Deflater deflater, int size, boolean close_out) voidsetSyncFlush(boolean syncFlush) voidwrite(byte[] b, int off, int len) voidwriteByteAsInt(int b) Methods inherited from class java.io.FilterOutputStream
write, writeMethods 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:
writein classFilterOutputStream- Throws:
IOException
-
finish
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-
deflate
- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classFilterOutputStream- Throws:
IOException
-
getTotalIn
public long getTotalIn() -
getTotalOut
public long getTotalOut() -
setSyncFlush
public void setSyncFlush(boolean syncFlush) -
getSyncFlush
public boolean getSyncFlush() -
getDeflater
-