|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.zip.Deflater
org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater
public class BuiltInZlibDeflater
A wrapper around java.util.zip.Deflater to make it conform to org.apache.hadoop.io.compress.Compressor interface.
Field Summary |
---|
Fields inherited from class java.util.zip.Deflater |
---|
BEST_COMPRESSION, BEST_SPEED, DEFAULT_COMPRESSION, DEFAULT_STRATEGY, DEFLATED, FILTERED, HUFFMAN_ONLY, NO_COMPRESSION |
Constructor Summary | |
---|---|
BuiltInZlibDeflater()
|
|
BuiltInZlibDeflater(int level)
|
|
BuiltInZlibDeflater(int level,
boolean nowrap)
|
Method Summary | |
---|---|
int |
compress(byte[] b,
int off,
int len)
Fills specified buffer with compressed data. |
Methods inherited from class java.util.zip.Deflater |
---|
deflate, deflate, end, finalize, finish, finished, getAdler, getBytesRead, getBytesWritten, getTotalIn, getTotalOut, needsInput, reset, setDictionary, setDictionary, setInput, setInput, setLevel, setStrategy |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.io.compress.Compressor |
---|
end, finish, finished, getBytesRead, getBytesWritten, needsInput, reset, setDictionary, setInput |
Constructor Detail |
---|
public BuiltInZlibDeflater(int level, boolean nowrap)
public BuiltInZlibDeflater(int level)
public BuiltInZlibDeflater()
Method Detail |
---|
public int compress(byte[] b, int off, int len) throws java.io.IOException
Compressor
compress
in interface Compressor
b
- Buffer for the compressed dataoff
- Start offset of the datalen
- Size of the buffer
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |