Method Summary |
|
public int | deflate(byte[] buf) |
public synchronized int | deflate(byte[] buf, int off, int nbytes) Deflates data into the supplied buffer using the region from off to
nbytes - 1. |
public synchronized void | end() Frees all resources held onto by this Deflater. |
protected void | finalize() |
public synchronized void | finish() Indicates to the Deflater that all uncompressed input has been provided
to it. |
public synchronized boolean | finished() Returns whether or not all provided data has been successfully
compressed. |
public synchronized int | getAdler() Returns the Adler32 checksum of uncompressed data currently read. |
public synchronized long | getBytesRead() Returns a long int of total number of bytes read by the Deflater. |
public synchronized long | getBytesWritten() Returns a long int of total number of bytes of read by the Deflater. |
public synchronized int | getTotalIn() Returns the total number of bytes of input consumed by the deflater. |
public synchronized int | getTotalOut() Returns the total number of compressed bytes output by this Deflater. |
public synchronized boolean | needsInput() Indicates whether or not all bytes of uncompressed input have been
consumed by the Deflater. |
public synchronized void | reset() Resets the Deflater to accept new input without affecting
any previously made settings for the compression strategy or level. |
public void | setDictionary(byte[] buf) Defines a dictionary to be used for compression by the receiver. |
public synchronized void | setDictionary(byte[] buf, int off, int nbytes) Sets the dictionary to be used for compression by this Deflater.
setDictionary() can only be called if this Deflater
supports the writing of ZLIB headers. |
public void | setInput(byte[] buf) Sets the input buffer the Deflater will use to extract uncompressed bytes
for later compression. |
public synchronized void | setInput(byte[] buf, int off, int nbytes) Sets the input buffer the Deflater will use to extract uncompressed bytes
for later compression. |
public synchronized void | setLevel(int level) Sets the compression level to be used when compressing data. |
public synchronized void | setStrategy(int strategy) Sets the compression strategy to be used. |