|
|
|||||||||
| 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.IntTrie
public class IntTrie
Trie implementation which stores data in int, 32 bits.
com.ibm.icu.impl.Trie| Nested Class Summary |
|---|
| 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 | |
|---|---|
IntTrie(InputStream inputStream,
Trie.DataManipulate datamanipulate)
Creates a new Trie with the settings for the trie data. |
|
| Method Summary | |
|---|---|
int |
getCodePointValue(int ch)
Gets the value associated with the codepoint. |
protected int |
getInitialValue()
Gets the default initial value |
int |
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. |
int |
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. |
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 IntTrie(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 final int getCodePointValue(int ch)
ch - codepoint
public final int getLeadValue(char ch)
ch - lead surrogate character
public final int getTrailValue(int leadvalue,
char trail)
leadvalue - the value of a lead surrogate that 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 | |||||||||