Deflater (Java Platform SE 7 ) (original) (raw)

Modifier and Type

Method and Description

int

**[deflate](../../../java/util/zip/Deflater.html#deflate%28byte[]%29)**(byte[] b)

Compresses the input data and fills specified buffer with compressed data.

int

**[deflate](../../../java/util/zip/Deflater.html#deflate%28byte[],%20int,%20int%29)**(byte[] b, int off, int len)

Compresses the input data and fills specified buffer with compressed data.

int

**[deflate](../../../java/util/zip/Deflater.html#deflate%28byte[],%20int,%20int,%20int%29)**(byte[] b, int off, int len, int flush)

Compresses the input data and fills the specified buffer with compressed data.

void

**[end](../../../java/util/zip/Deflater.html#end%28%29)**()

Closes the compressor and discards any unprocessed input.

protected void

**[finalize](../../../java/util/zip/Deflater.html#finalize%28%29)**()

Closes the compressor when garbage is collected.

void

**[finish](../../../java/util/zip/Deflater.html#finish%28%29)**()

When called, indicates that compression should end with the current contents of the input buffer.

boolean

**[finished](../../../java/util/zip/Deflater.html#finished%28%29)**()

Returns true if the end of the compressed data output stream has been reached.

int

**[getAdler](../../../java/util/zip/Deflater.html#getAdler%28%29)**()

Returns the ADLER-32 value of the uncompressed data.

long

**[getBytesRead](../../../java/util/zip/Deflater.html#getBytesRead%28%29)**()

Returns the total number of uncompressed bytes input so far.

long

**[getBytesWritten](../../../java/util/zip/Deflater.html#getBytesWritten%28%29)**()

Returns the total number of compressed bytes output so far.

int

**[getTotalIn](../../../java/util/zip/Deflater.html#getTotalIn%28%29)**()

Returns the total number of uncompressed bytes input so far.

int

**[getTotalOut](../../../java/util/zip/Deflater.html#getTotalOut%28%29)**()

Returns the total number of compressed bytes output so far.

boolean

**[needsInput](../../../java/util/zip/Deflater.html#needsInput%28%29)**()

Returns true if the input data buffer is empty and setInput() should be called in order to provide more input.

void

**[reset](../../../java/util/zip/Deflater.html#reset%28%29)**()

Resets deflater so that a new set of input data can be processed.

void

**[setDictionary](../../../java/util/zip/Deflater.html#setDictionary%28byte[]%29)**(byte[] b)

Sets preset dictionary for compression.

void

**[setDictionary](../../../java/util/zip/Deflater.html#setDictionary%28byte[],%20int,%20int%29)**(byte[] b, int off, int len)

Sets preset dictionary for compression.

void

**[setInput](../../../java/util/zip/Deflater.html#setInput%28byte[]%29)**(byte[] b)

Sets input data for compression.

void

**[setInput](../../../java/util/zip/Deflater.html#setInput%28byte[],%20int,%20int%29)**(byte[] b, int off, int len)

Sets input data for compression.

void

**[setLevel](../../../java/util/zip/Deflater.html#setLevel%28int%29)**(int level)

Sets the current compression level to the specified value.

void

**[setStrategy](../../../java/util/zip/Deflater.html#setStrategy%28int%29)**(int strategy)

Sets the compression strategy to the specified value.