|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TrieReader
The TrieReader interface provides a means to read a
trie structure with counts.
See TrieWriter for a description of how a trie is
encoded as a sequence of long values.
| Method Summary | |
|---|---|
long |
readCount()
Returns the count of the next tree. |
long |
readSymbol()
Returns the identifier of the symbol leading from the root of the current tree to the daughter subtree for the symbol, or -1 if there are no more subtrees for the current
node. |
| Method Detail |
|---|
long readSymbol()
throws IOException
-1 if there are no more subtrees for the current
node.
IOException - If there is an underlying I/O error.
IllegalStateException - If the next item to be read is
not a symbol.
long readCount()
throws IOException
IOException - If there is an underlying I/O error.
IllegalStateException - If the next item to be read is
not a count.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||