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
构造器和说明 |
---|
BuiltInZlibDeflater() |
BuiltInZlibDeflater(int level) |
BuiltInZlibDeflater(int level,
boolean nowrap) |
限定符和类型 | 方法和说明 |
---|---|
int |
compress(byte[] b,
int off,
int len)
Fills specified buffer with compressed data.
|
void |
reinit(Configuration conf)
reinit the compressor with the given configuration.
|
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
在接口中 Compressor
b
- Buffer for the compressed dataoff
- Start offset of the datalen
- Size of the bufferIOException
public void reinit(Configuration conf)
reinit
在接口中 Compressor
conf
- Configuration from which new setting are fetchedCopyright © 2009 The Apache Software Foundation