Inflater.setDictionary
Class Overview | Class Members |
This Package |
All Packages
public native synchronized void setDictionary( byte b[],
int off,
int len )
Parameters
- b
- the dictionary data bytes
- off
- the start offset of the data
- len
- the length of the data
Description
Sets the preset dictionary to the given array of bytes. Should be
called when inflate() returns 0 and needsDictionary() returns true
indicating that a preset dictionary is required. The method getAdler()
can be used to get the Adler-32 value of the dictionary needed.
See Also
needsDictionary, getAdler
public void setDictionary( byte b[] )
Parameters
- b
- the dictionary data bytes
Description
Sets the preset dictionary to the given array of bytes. Should be
called when inflate() returns 0 and needsDictionary() returns true
indicating that a preset dictionary is required. The method getAdler()
can be used to get the Adler-32 value of the dictionary needed.
See Also
needsDictionary, getAdler