Inflater.setDictionary

Inflater.setDictionary

Class Overview | Class Members | This Package | All Packages

Syntax 1
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



Syntax 2
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