|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.lm.BitTrieReader
public class BitTrieReader
A BitTrieReader provides a trie reader that wraps a
bit-level input.
The encoding is discussed in the class
documentation for the corresponding writer, BitTrieWriter.
| Constructor Summary | |
|---|---|
BitTrieReader(BitInput bitInput)
Construct a bit trie reader from the specified bit input. |
|
| Method Summary | |
|---|---|
long |
readCount()
Read and return the next count from the underlying bit input. |
long |
readSymbol()
Read and return the next symbol from the underlying bit input. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitTrieReader(BitInput bitInput)
bitInput - Bit input from which to read the trie.| Method Detail |
|---|
public long readCount()
throws IOException
readCount in interface TrieReaderIOException - If there is an underlying I/O error.
public long readSymbol()
throws IOException
-1 if there are no more daughters to
read in the current trie node.
readSymbol in interface TrieReaderIOException - If there is an underlying I/O error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||