|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.serializer.ToHTMLStream.Trie
static class ToHTMLStream.Trie
Nested Class Summary | |
---|---|
private static class |
ToHTMLStream.Trie.Node
The node representation for the trie. |
Field Summary | |
---|---|
static int |
ALPHA_SIZE
Size of the m_nextChar array. |
private char[] |
m_charBuffer
helper buffer to convert Strings to char arrays |
private boolean |
m_lowerCaseOnly
true if the search for an object is lower case only with the key |
(package private) ToHTMLStream.Trie.Node |
m_Root
The root node of the tree. |
Constructor Summary | |
---|---|
ToHTMLStream.Trie()
Construct the trie that has a case insensitive search. |
|
ToHTMLStream.Trie(boolean lowerCaseOnly)
Construct the trie given the desired case sensitivity with the key. |
|
ToHTMLStream.Trie(ToHTMLStream.Trie existingTrie)
Construct the trie from another Trie. |
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String key)
Get an object that matches the key. |
java.lang.Object |
get2(java.lang.String key)
Get an object that matches the key. |
int |
getLongestKeyLength()
Get the length of the longest key used in the table. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Put an object into the trie for lookup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ALPHA_SIZE
final ToHTMLStream.Trie.Node m_Root
private char[] m_charBuffer
private final boolean m_lowerCaseOnly
Constructor Detail |
---|
public ToHTMLStream.Trie()
public ToHTMLStream.Trie(boolean lowerCaseOnly)
lowerCaseOnly
- true if the search keys are to be loser case only,
not case insensitive.public ToHTMLStream.Trie(ToHTMLStream.Trie existingTrie)
existingTrie
- the Trie that this one is a copy of.Method Detail |
---|
public java.lang.Object put(java.lang.String key, java.lang.Object value)
key
- must be a 7-bit ASCII stringvalue
- any java object.
public java.lang.Object get(java.lang.String key)
key
- must be a 7-bit ASCII string
public java.lang.Object get2(java.lang.String key)
key
- must be a 7-bit ASCII string
public int getLongestKeyLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |