Compressorpublic class BuiltInZlibDeflater extends java.util.zip.Deflater implements Compressor
| Constructor | Description |
|---|---|
BuiltInZlibDeflater() |
|
BuiltInZlibDeflater(int level) |
|
BuiltInZlibDeflater(int level,
boolean nowrap) |
| Modifier and Type | Method | Description |
|---|---|---|
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, deflate, deflate, end, finalize, finish, finished, getAdler, getBytesRead, getBytesWritten, getTotalIn, getTotalOut, needsInput, reset, setDictionary, setDictionary, setDictionary, setInput, 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 java.io.IOException
Compressorcompress in interface Compressorb - Buffer for the compressed dataoff - Start offset of the datalen - Size of the bufferjava.io.IOException - raised on errors performing I/O.public void reinit(Configuration conf)
reinit in interface Compressorconf - Configuration from which new setting are fetchedCopyright © 2008–2025 Apache Software Foundation. All rights reserved.