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.FilterOutputStream
Deprecated.use DeflaterOutputStream or InflaterInputStreamZOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
buf
Deprecated.private byte[]
buf1
Deprecated.protected int
bufsize
Deprecated.protected boolean
compress
Deprecated.private DeflaterOutputStream
dos
Deprecated.private boolean
end
Deprecated.protected int
flush
Deprecated.private Inflater
inflater
Deprecated.protected java.io.OutputStream
out
Deprecated.
-
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 void
close()
Deprecated.void
end()
Deprecated.void
finish()
Deprecated.void
flush()
Deprecated.int
getFlushMode()
Deprecated.long
getTotalIn()
Deprecated.long
getTotalOut()
Deprecated.void
setFlushMode(int flush)
Deprecated.void
write(byte[] b, int off, int len)
Deprecated.void
write(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.IOException
Deprecated.- Throws:
java.io.IOException
-
ZOutputStream
public ZOutputStream(java.io.OutputStream out, int level) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
ZOutputStream
public ZOutputStream(java.io.OutputStream out, int level, boolean nowrap) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException
Deprecated.- Overrides:
write
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException
Deprecated.- Overrides:
write
in 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.IOException
Deprecated.- Throws:
java.io.IOException
-
end
public void end()
Deprecated.
-
close
public void close() throws java.io.IOException
Deprecated.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
getTotalIn
public long getTotalIn()
Deprecated.
-
getTotalOut
public long getTotalOut()
Deprecated.
-
flush
public void flush() throws java.io.IOException
Deprecated.- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
-