public interface Decompressor
CompressionInputStream
to compress data.
This is modelled after Inflater
Modifier and Type | Method and Description |
---|---|
int |
decompress(byte[] b,
int off,
int len)
Fills specified buffer with uncompressed data.
|
void |
end()
Closes the decompressor and discards any unprocessed input.
|
boolean |
finished()
Returns true if the end of the compressed
data output stream has been reached.
|
boolean |
needsDictionary()
Returns
true if a preset dictionary is needed for decompression. |
boolean |
needsInput()
Returns true if the input data buffer is empty and
#setInput() should be called to provide more input.
|
void |
reset()
Resets decompressor so that a new set of input data can be processed.
|
void |
setDictionary(byte[] b,
int off,
int len)
Sets preset dictionary for compression.
|
void |
setInput(byte[] b,
int off,
int len)
Sets input data for decompression.
|
void setInput(byte[] b, int off, int len)
true
indicating that more input data is required.b
- Input dataoff
- Start offsetlen
- Lengthboolean needsInput()
true
if the input data buffer is empty and
#setInput() should be called in order to provide more input.void setDictionary(byte[] b, int off, int len)
b
- Dictionary data bytesoff
- Start offsetlen
- Lengthboolean needsDictionary()
true
if a preset dictionary is needed for decompression.true
if a preset dictionary is needed for decompressionboolean finished()
true
if the end of the compressed
data output stream has been reached.int decompress(byte[] b, int off, int len) throws IOException
b
- Buffer for the compressed dataoff
- Start offset of the datalen
- Size of the bufferIOException
void reset()
void end()
Copyright © 2010 The Apache Software Foundation