java.text
Class UnicodeClassMapping

java.lang.Object
  extended byjava.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.


Field Summary
private  int[] asciiValues
           
private  SpecialMapping[] exceptionChars
           
private  boolean[] hasException
           
private  int[] mappedValue
           
 
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
 

Field Detail

mappedValue

private int[] mappedValue

exceptionChars

private SpecialMapping[] exceptionChars

hasException

private boolean[] hasException

asciiValues

private int[] asciiValues
Constructor Detail

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.

Method Detail

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.