|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.text.normalizer.Trie
sun.text.normalizer.CharTrie
public class CharTrie
Trie implementation which stores data in char, 16 bits.
com.ibm.icu.impl.Trie| Nested Class Summary | |
|---|---|
class |
CharTrie.FriendAgent
Java friend implementation |
| Nested classes/interfaces inherited from class sun.text.normalizer.Trie |
|---|
Trie.DataManipulate |
| Field Summary |
|---|
| Fields inherited from class sun.text.normalizer.Trie |
|---|
INDEX_STAGE_1_SHIFT_, INDEX_STAGE_2_SHIFT_, INDEX_STAGE_3_MASK_, LEAD_INDEX_OFFSET_, m_dataLength_, m_dataManipulate_, m_dataOffset_, m_index_, SURROGATE_MASK_ |
| Constructor Summary | |
|---|---|
CharTrie(InputStream inputStream,
Trie.DataManipulate dataManipulate)
Creates a new Trie with the settings for the trie data. |
|
| Method Summary | |
|---|---|
char |
getCodePointValue(int ch)
Gets the value associated with the codepoint. |
protected int |
getInitialValue()
Gets the default initial value |
char |
getLeadValue(char ch)
Gets the value to the data which this lead surrogate character points to. |
protected int |
getSurrogateOffset(char lead,
char trail)
Gets the offset to the data which the surrogate pair points to. |
char |
getSurrogateValue(char lead,
char trail)
Get the value associated with a pair of surrogates. |
char |
getTrailValue(int leadvalue,
char trail)
Get a value from a folding offset (from the value of a lead surrogate) and a trail surrogate. |
protected int |
getValue(int index)
Gets the value at the argument index. |
void |
putIndexData(UCharacterProperty friend)
Java friend implementation To store the index and data array into the argument. |
protected void |
unserialize(InputStream inputStream)
Parses the input stream and stores its trie content into a index and data array |
| Methods inherited from class sun.text.normalizer.Trie |
|---|
getBMPOffset, getCodePointOffset, getLeadOffset, getRawOffset, isCharTrie, isIntTrie |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CharTrie(InputStream inputStream,
Trie.DataManipulate dataManipulate)
throws IOException
Creates a new Trie with the settings for the trie data.
Unserialize the 32-bit-aligned input stream and use the data for the trie.
inputStream - file input stream to a ICU data file, containing
the triedataManipulate - object which provides methods to parse the char
data
IOException - thrown when data reading fails| Method Detail |
|---|
public void putIndexData(UCharacterProperty friend)
friend - java friend UCharacterProperty object to store the arraypublic final char getCodePointValue(int ch)
ch - codepoint
public final char getLeadValue(char ch)
ch - lead surrogate character
public final char getSurrogateValue(char lead,
char trail)
lead - a lead surrogatetrail - a trail surrogate
public final char getTrailValue(int leadvalue,
char trail)
Get a value from a folding offset (from the value of a lead surrogate) and a trail surrogate.
If the
leadvalue - value associated with the lead surrogate which contains
the folding offsettrail - surrogate
protected final void unserialize(InputStream inputStream)
throws IOException
Parses the input stream and stores its trie content into a index and data array
unserialize in class TrieinputStream - data input stream containing trie data
IOException - thrown when data reading fails
protected final int getSurrogateOffset(char lead,
char trail)
getSurrogateOffset in class Trielead - lead surrogatetrail - trailing surrogate
protected final int getValue(int index)
getValue in class Trieindex - value at index will be retrieved
com.ibm.icu.impl.TrieIteratorprotected final int getInitialValue()
getInitialValue in class Trie
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||