APIdia Launch Partner
Top Description Fields Constructors Methods
sun.text

public final Class SupplementaryCharacterData

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable

SupplementaryCharacterData is an SMI-private class which was written for RuleBasedBreakIterator and BreakDictionary.

Field Summary

Modifier and TypeField and Description
private int[]
dataTable

An array for supplementary characters and values.

private static final byte
IGNORE

A token used as a character-category value to identify ignore characters

Constructor Summary

AccessConstructor and Description
public
SupplementaryCharacterData(int[] table)

Creates a new SupplementaryCharacterData object with the given table.

Method Summary

Modifier and TypeMethod and Description
public int[]
getArray()

Returns the data array.

public int
getValue(int index)

Returns a corresponding value for the given supplementary code-point.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dataTableback to summary
private int[] dataTable

An array for supplementary characters and values. Lower one byte is used to keep a byte-value. Upper three bytes are used to keep the first supplementary character which has the value. The value is also valid for the following supplementary characters until the next supplementary character in the array dataTable. For example, if the value of dataTable[2] is 0x01000123 and the value of dataTable[3] is 0x01000567, supplementary characters from 0x10001 to 0x10004 has the value 0x23. And, getValue(0x10003) returns the value.

IGNOREback to summary
private static final byte IGNORE

A token used as a character-category value to identify ignore characters

Constructor Detail

SupplementaryCharacterDataback to summary
public SupplementaryCharacterData(int[] table)

Creates a new SupplementaryCharacterData object with the given table.

Method Detail

getArrayback to summary
public int[] getArray()

Returns the data array.

getValueback to summary
public int getValue(int index)

Returns a corresponding value for the given supplementary code-point.