Example usage for Java java.util.zip Deflater fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | finish |
int | DEFLATED Compression method for the deflate algorithm (the only one currently supported). |
int | NO_COMPRESSION Compression level for no compression. |
int | BEST_SPEED Compression level for fastest compression. |
int | BEST_COMPRESSION Compression level for best compression. |
int | DEFAULT_COMPRESSION Default compression level. |
int | HUFFMAN_ONLY Compression strategy for Huffman coding only. |
int | DEFAULT_STRATEGY Default compression strategy. |
int | SYNC_FLUSH Compression flush mode used to flush out all pending output; may degrade compression for some compression algorithms. |
Deflater() Creates a new compressor with the default compression level. | |
Deflater(int level, boolean nowrap) Creates a new compressor using the specified compression level. | |
Deflater(int level) Creates a new compressor using the specified compression level. |
int | deflate(byte[] output) Compresses the input data and fills specified buffer with compressed data. |
int | deflate(ByteBuffer output) Compresses the input data and fills specified buffer with compressed data. |
int | deflate(byte[] output, int off, int len) Compresses the input data and fills specified buffer with compressed data. |
int | deflate(byte[] output, int off, int len, int flush) Compresses the input data and fills the specified buffer with compressed data. |
void | end() Closes the compressor and discards any unprocessed input. |
boolean | finished() Returns true if the end of the compressed data output stream has been reached. |
long | getBytesRead() Returns the total number of uncompressed bytes input so far. |
long | getBytesWritten() Returns the total number of compressed bytes output so far. |
Class> | getClass() Returns the runtime class of this Object . |
int | getTotalOut() Returns the total number of compressed bytes output so far. |
boolean | needsInput() Returns true if no data remains in the input buffer. |
void | reset() Resets deflater so that a new set of input data can be processed. |
void | setDictionary(byte[] dictionary) Sets preset dictionary for compression. |
void | setDictionary(ByteBuffer dictionary) Sets preset dictionary for compression. |
void | setInput(byte[] input) Sets input data for compression. |
void | setInput(ByteBuffer input) Sets input data for compression. |
void | setInput(byte[] input, int off, int len) Sets input data for compression. |
void | setLevel(int level) Sets the compression level to the specified value. |
void | setStrategy(int strategy) Sets the compression strategy to the specified value. |