| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Decompressor
Specification of a stream-based 'de-compressor' which can be  
 plugged into a CompressionInputStream to compress data.
 This is modelled after Inflater
| Method Summary | |
|---|---|
 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.  | 
| Method Detail | 
|---|
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 buffer
IOExceptionvoid reset()
void end()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||