Top Description Fields Constructors Methods
com.jcraft.jzlib

public Class ZOutputStream

extends FilterOutputStream
Class Inheritance
Annotations
@Deprecated
Imports
java.io.*

Deprecated

use DeflaterOutputStream or InflaterInputStream

ZOutputStream

Field Summary

Modifier and TypeField and Description
protected byte[]
private byte[]
protected int
protected boolean
private DeflaterOutputStream
private boolean
protected int
private Inflater
inflater

Deprecated as a consequence of Inflater being deprecated.
protected OutputStream

Constructor Summary

AccessConstructor and Description
public
public
ZOutputStream(OutputStream out, int level)

public
ZOutputStream(OutputStream out, int level, boolean nowrap)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

Closes this output stream and releases any system resources associated with the stream.
public synchronized void
end()

public void
public void
flush()

Overrides java.io.FilterOutputStream.flush.

Implements java.io.Flushable.flush.

Flushes this output stream and forces any buffered output bytes to be written out to the stream.
public int
public long
public long
public void
setFlushMode(int flush)

public void
write(int
the byte.
b
)

Overrides java.io.FilterOutputStream.write.

Writes the specified byte to this output stream.
public void
write(byte[]
the data.
b
,
int
the start offset in the data.
off
,
int
the number of bytes to write.
len
)

Overrides java.io.FilterOutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this output stream.
Inherited from java.io.FilterOutputStream:
write

Field Detail

bufback to summary
protected byte[] buf
buf1back to summary
private byte[] buf1
bufsizeback to summary
protected int bufsize
compressback to summary
protected boolean compress
dosback to summary
private DeflaterOutputStream dos
endback to summary
private boolean end
flushback to summary
protected int flush
inflaterback to summary
private Inflater inflater

Deprecated

as a consequence of Inflater being deprecated. See corresponding docs for further information.

outback to summary
protected OutputStream out

Hides java.io.FilterOutputStream.out.

Constructor Detail

ZOutputStreamback to summary
public ZOutputStream(OutputStream out) throws IOException
ZOutputStreamback to summary
public ZOutputStream(OutputStream out, int level) throws IOException
ZOutputStreamback to summary
public ZOutputStream(OutputStream out, int level, boolean nowrap) throws IOException

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.FilterOutputStream.close.

Implements java.io.Closeable.close.

Doc from java.io.FilterOutputStream.close.

Closes this output stream and releases any system resources associated with the stream.

Exceptions
IOException:
if an I/O error occurs.
endback to summary
public synchronized void end()
finishback to summary
public void finish() throws IOException
flushback to summary
public void flush() throws IOException

Overrides java.io.FilterOutputStream.flush.

Implements java.io.Flushable.flush.

Doc from java.io.FilterOutputStream.flush.

Flushes this output stream and forces any buffered output bytes to be written out to the stream.

Exceptions
IOException:
if an I/O error occurs.
getFlushModeback to summary
public int getFlushMode()
getTotalInback to summary
public long getTotalIn()
getTotalOutback to summary
public long getTotalOut()
setFlushModeback to summary
public void setFlushMode(int flush)
writeback to summary
public void write(int b) throws IOException

Overrides java.io.FilterOutputStream.write.

Doc from java.io.FilterOutputStream.write.

Writes the specified byte to this output stream.

The write method of FilterOutputStream calls the write method of its underlying output stream, that is, it performs out.write(b).

Implements the abstract write method of OutputStream.

Parameters
b:int

the byte.

Exceptions
IOException:
if an I/O error occurs.
writeback to summary
public void write(byte[] b, int off, int len) throws IOException

Overrides java.io.FilterOutputStream.write.

Doc from java.io.FilterOutputStream.write.

Writes len bytes from the specified byte array starting at offset off to this output stream.

Parameters
b:byte[]

the data.

off:int

the start offset in the data.

len:int

the number of bytes to write.

Exceptions
IOException:
if an I/O error occurs.