java.text
Class UnicodeClassMapping
java.lang.Object
java.text.UnicodeClassMapping
- final class UnicodeClassMapping
- extends Object
This class maps categories to state change inputs for the
WordBreakTable. An entire category is mapped to the same
value unless the character in question appears in the exception list.
Constructor Summary |
UnicodeClassMapping(int[] mappedValue,
SpecialMapping[] exceptionChars,
boolean[] hasException,
int[] asciiValues)
Create a mapping given a mapping from categories and a list
of exceptions. |
Method Summary |
int |
mappedChar(char ch)
Map a character to a stage change input for WordBreakTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mappedValue
private int[] mappedValue
exceptionChars
private SpecialMapping[] exceptionChars
hasException
private boolean[] hasException
asciiValues
private int[] asciiValues
UnicodeClassMapping
public UnicodeClassMapping(int[] mappedValue,
SpecialMapping[] exceptionChars,
boolean[] hasException,
int[] asciiValues)
- Create a mapping given a mapping from categories and a list
of exceptions. Both the mapping list and exceptionChars list must
be sorted in ascending order.
mappedChar
public int mappedChar(char ch)
- Map a character to a stage change input for WordBreakTable
- Parameters:
ch
- The character to map.
- Returns:
- The mapped value.