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, setStrategyclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitend, finish, finished, getBytesRead, getBytesWritten, needsInput, reset, setDictionary, setInputpublic BuiltInZlibDeflater(int level,
boolean nowrap)
public BuiltInZlibDeflater(int level)
public BuiltInZlibDeflater()
public int compress(byte[] b,
int off,
int len)
throws IOException
Compressorcompress 在接口中 Compressorb - Buffer for the compressed dataoff - Start offset of the datalen - Size of the bufferIOExceptionpublic void reinit(Configuration conf)
reinit 在接口中 Compressorconf - Configuration from which new setting are fetchedCopyright © 2009 The Apache Software Foundation