Package com.jcraft.jzlib
Class ZOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- com.jcraft.jzlib.ZOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
@Deprecated public class ZOutputStream extends java.io.FilterOutputStreamDeprecated.use DeflaterOutputStream or InflaterInputStreamZOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]bufDeprecated.private byte[]buf1Deprecated.protected intbufsizeDeprecated.protected booleancompressDeprecated.private DeflaterOutputStreamdosDeprecated.private booleanendDeprecated.protected intflushDeprecated.private InflaterinflaterDeprecated.protected java.io.OutputStreamoutDeprecated.
-
Constructor Summary
Constructors Constructor Description ZOutputStream(java.io.OutputStream out)Deprecated.ZOutputStream(java.io.OutputStream out, int level)Deprecated.ZOutputStream(java.io.OutputStream out, int level, boolean nowrap)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voidend()Deprecated.voidfinish()Deprecated.voidflush()Deprecated.intgetFlushMode()Deprecated.longgetTotalIn()Deprecated.longgetTotalOut()Deprecated.voidsetFlushMode(int flush)Deprecated.voidwrite(byte[] b, int off, int len)Deprecated.voidwrite(int b)Deprecated.
-
-
-
Field Detail
-
bufsize
protected int bufsize
Deprecated.
-
flush
protected int flush
Deprecated.
-
buf
protected byte[] buf
Deprecated.
-
compress
protected boolean compress
Deprecated.
-
out
protected java.io.OutputStream out
Deprecated.
-
end
private boolean end
Deprecated.
-
dos
private DeflaterOutputStream dos
Deprecated.
-
inflater
private Inflater inflater
Deprecated.
-
buf1
private byte[] buf1
Deprecated.
-
-
Constructor Detail
-
ZOutputStream
public ZOutputStream(java.io.OutputStream out) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
ZOutputStream
public ZOutputStream(java.io.OutputStream out, int level) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
ZOutputStream
public ZOutputStream(java.io.OutputStream out, int level, boolean nowrap) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOExceptionDeprecated.- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOExceptionDeprecated.- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
getFlushMode
public int getFlushMode()
Deprecated.
-
setFlushMode
public void setFlushMode(int flush)
Deprecated.
-
finish
public void finish() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
end
public void end()
Deprecated.
-
close
public void close() throws java.io.IOExceptionDeprecated.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
getTotalIn
public long getTotalIn()
Deprecated.
-
getTotalOut
public long getTotalOut()
Deprecated.
-
flush
public void flush() throws java.io.IOExceptionDeprecated.- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
-