Top Fields Constructors Methods
com.jcraft.jzlib

public Class DeflaterOutputStream

extends FilterOutputStream
Class Inheritance
Known Direct Subclasses
com.jcraft.jzlib.GZIPOutputStream
Imports
java.io.*

Field Summary

Modifier and TypeField and Description
private final byte[]
protected byte[]
private boolean
private boolean
protected static final int
protected final Deflater
deflater

Deprecated as a consequence of Deflater being deprecated.
protected boolean
private boolean
Inherited from java.io.FilterOutputStream:
out

Constructor Summary

AccessConstructor and Description
public
public
DeflaterOutputStream(OutputStream out, Deflater def)

Deprecated as a consequence of Deflater being deprecated.
public
DeflaterOutputStream(OutputStream out, Deflater deflater, int size)

Deprecated as a consequence of Deflater being deprecated.
public
DeflaterOutputStream(OutputStream out, Deflater deflater, int size, boolean close_out)

Deprecated as a consequence of Deflater being deprecated.

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.
protected int
deflate(int flush)

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 Deflater
getDeflater()

Deprecated as a consequence of Deflater being deprecated.
public boolean
public long
public long
public void
setSyncFlush(boolean syncFlush)

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

buf1back to summary
private final byte[] buf1
bufferback to summary
protected byte[] buffer
close_outback to summary
private boolean close_out
closedback to summary
private boolean closed

Hides java.io.FilterOutputStream.closed.

DEFAULT_BUFSIZEback to summary
protected static final int DEFAULT_BUFSIZE
deflaterback to summary
protected final Deflater deflater

Deprecated

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

mydeflaterback to summary
protected boolean mydeflater
syncFlushback to summary
private boolean syncFlush

Constructor Detail

DeflaterOutputStreamback to summary
public DeflaterOutputStream(OutputStream out) throws IOException
DeflaterOutputStreamback to summary
public DeflaterOutputStream(OutputStream out, Deflater def) throws IOException

Deprecated

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

DeflaterOutputStreamback to summary
public DeflaterOutputStream(OutputStream out, Deflater deflater, int size) throws IOException

Deprecated

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

DeflaterOutputStreamback to summary
public DeflaterOutputStream(OutputStream out, Deflater deflater, int size, boolean close_out) throws IOException

Deprecated

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

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.
deflateback to summary
protected int deflate(int flush) throws IOException
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.
getDeflaterback to summary
public Deflater getDeflater()

Deprecated

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

getSyncFlushback to summary
public boolean getSyncFlush()
getTotalInback to summary
public long getTotalIn()
getTotalOutback to summary
public long getTotalOut()
setSyncFlushback to summary
public void setSyncFlush(boolean syncFlush)
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.