TagTreeEncoder Class Members
In This Topic
The following tables list the members exposed by TagTreeEncoder.
Public Constructors
Public Properties
Public Methods
| Name | Description |
| encode | Encodes information for the specified element of the tree, given the threshold and sends it to the 'out' stream. The information that is coded is whether or not the value of the element is greater than or equal to the value of the threshold. |
| reset | Overloaded. Resets the tree values and state. All the values are set to Integer.MAX_VALUE and the states to 0. |
| restore | Restores the saved values and state of the tree. An IllegalArgumentException is thrown if the tree values and state have not been saved yet. |
| save | Saves the current values and state of the tree. Calling restore() restores the tag tree the saved state. |
| setValue | Changes the value of a leaf in the tag tree. The new and old values of the element must be not smaller than the largest threshold which has yet been supplied to 'encode()'. |
Top
See Also