| java.lang.Object java.text.RBTableBuilder
RBTableBuilder | final class RBTableBuilder (Code) | | This class contains all the code to parse a RuleBasedCollator pattern
and build a RBCollationTables object from it. A particular instance
of tis class exists only during the actual build process-- once an
RBCollationTables object has been built, the RBTableBuilder object
goes away. This object carries all of the state which is only needed
during the build process, plus a "shadow" copy of all of the state
that will go into the tables object itself. This object communicates
with RBCollationTables through a separate class, RBCollationTables.BuildAPI,
this is an inner class of RBCollationTables and provides a separate
private API for communication with RBTableBuilder.
This class isn't just an inner class of RBCollationTables itself because
of its large size. For source-code readability, it seemed better for the
builder to have its own source file.
|
Method Summary | |
public void | build(String pattern, int decmp) Create a table-based collation object with the given rules.
This is the main function that actually builds the tables and
stores them back in the RBCollationTables object. | Vector | getContractValues(char ch) Get the entry of hash table of the contracting string in the collation
table. | Vector | getContractValues(int index) |
CHARINDEX | final static int CHARINDEX(Code) | | |
build | public void build(String pattern, int decmp) throws ParseException(Code) | | Create a table-based collation object with the given rules.
This is the main function that actually builds the tables and
stores them back in the RBCollationTables object. It is called
ONLY by the RBCollationTables constructor.
See Also: java.util.RuleBasedCollator.RuleBasedCollator exception: ParseException - If the rules format is incorrect. |
getContractValues | Vector getContractValues(char ch)(Code) | | Get the entry of hash table of the contracting string in the collation
table.
Parameters: ch - the starting character of the contracting string |
|
|