Inflater.inflate
Class Overview | Class Members | 
  This Package | 
All Packages
 public native synchronized int inflate( byte b[],
                                        int off,
                                        int len ) throws DataFormatException
Parameters
-  b 
-  the buffer for the uncompressed data
    
-  off 
-  the start offset of the data
    
-  len 
-  the maximum number of uncompressed bytes
    
Returns
     the actual number of uncompressed bytes
    Description
 Uncompresses bytes into specified buffer. Returns actual number
 of bytes uncompressed. A return value of 0 indicates that
 needsInput() or needsDictionary() should be called in order to
 determine if more input data or a preset dictionary is required.
 In the later case, getAdler() can be used to get the Adler-32
 value of the dictionary required.
  
Exceptions
 DataFormatException
     if the compressed data format is invalid
    
See Also
     needsInput, needsDictionary
  
 public int inflate( byte b[] ) throws DataFormatException
Parameters
-  b 
-  the buffer for the uncompressed data
    
Returns
     the actual number of uncompressed bytes
    Description
 Uncompresses bytes into specified buffer. Returns actual number
 of bytes uncompressed. A return value of 0 indicates that
 needsInput() or needsDictionary() should be called in order to
 determine if more input data or a preset dictionary is required.
 In the later case, getAdler() can be used to get the Adler-32
 value of the dictionary required.
  
Exceptions
 DataFormatException
     if the compressed data format is invalid
    
See Also
     needsInput, needsDictionary