public class BitTrieReader extends Object implements TrieReader
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 and Description |
|---|
BitTrieReader(BitInput bitInput)
Construct a bit trie reader from the specified bit input.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public BitTrieReader(BitInput bitInput)
bitInput - Bit input from which to read the trie.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.Copyright © 2016 Alias-i, Inc.. All rights reserved.