public class LzoDecompressor extends Object implements org.apache.hadoop.io.compress.Decompressor
Decompressor based on the lzo algorithm.
http://www.oberhumer.com/opensource/lzo/| Modifier and Type | Class and Description |
|---|---|
static class |
LzoDecompressor.CompressionStrategy |
| Constructor and Description |
|---|
LzoDecompressor()
Creates a new lzo decompressor.
|
LzoDecompressor(LzoDecompressor.CompressionStrategy strategy,
int outputBufferSize)
Creates a new lzo decompressor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
decompress(byte[] b,
int off,
int len) |
void |
end() |
boolean |
finished() |
int |
getRemaining() |
boolean |
needsDictionary() |
boolean |
needsInput() |
void |
reset() |
void |
setDictionary(byte[] b,
int off,
int len) |
void |
setInput(byte[] b,
int off,
int len) |
void |
setOutputBufferSize(int outputBufferSize) |
public LzoDecompressor(LzoDecompressor.CompressionStrategy strategy, int outputBufferSize)
strategy - lzo decompression algorithmoutputBufferSize - size of the output bufferpublic LzoDecompressor()
public void setOutputBufferSize(int outputBufferSize)
public void setInput(byte[] b, int off, int len)
setInput in interface org.apache.hadoop.io.compress.Decompressorpublic void setDictionary(byte[] b, int off, int len)
setDictionary in interface org.apache.hadoop.io.compress.Decompressorpublic boolean needsInput()
needsInput in interface org.apache.hadoop.io.compress.Decompressorpublic boolean needsDictionary()
needsDictionary in interface org.apache.hadoop.io.compress.Decompressorpublic boolean finished()
finished in interface org.apache.hadoop.io.compress.Decompressorpublic int decompress(byte[] b, int off, int len) throws IOException
decompress in interface org.apache.hadoop.io.compress.DecompressorIOExceptionpublic int getRemaining()
getRemaining in interface org.apache.hadoop.io.compress.Decompressorpublic void reset()
reset in interface org.apache.hadoop.io.compress.Decompressorpublic void end()
end in interface org.apache.hadoop.io.compress.Decompressor