public class BuiltInZlibDeflater extends Deflater implements Compressor
BEST_COMPRESSION, BEST_SPEED, DEFAULT_COMPRESSION, DEFAULT_STRATEGY, DEFLATED, FILTERED, FULL_FLUSH, HUFFMAN_ONLY, NO_COMPRESSION, NO_FLUSH, SYNC_FLUSH
Constructor and Description |
---|
BuiltInZlibDeflater() |
BuiltInZlibDeflater(int level) |
BuiltInZlibDeflater(int level,
boolean nowrap) |
Modifier and Type | Method and Description |
---|---|
int |
compress(byte[] b,
int off,
int len)
Fills specified buffer with compressed data.
|
deflate, deflate, deflate, end, finalize, finish, finished, getAdler, getBytesRead, getBytesWritten, getTotalIn, getTotalOut, needsInput, reset, setDictionary, setDictionary, setInput, setInput, setLevel, setStrategy
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
end, finish, finished, getBytesRead, getBytesWritten, needsInput, reset, setDictionary, setInput
public BuiltInZlibDeflater(int level, boolean nowrap)
public BuiltInZlibDeflater(int level)
public BuiltInZlibDeflater()
public int compress(byte[] b, int off, int len) throws IOException
Compressor
compress
in interface Compressor
b
- Buffer for the compressed dataoff
- Start offset of the datalen
- Size of the bufferIOException
Copyright © 2010 The Apache Software Foundation