public interface BitReader
| Modifier and Type | Method and Description |
|---|---|
boolean |
bit()
Read one bit.
|
long |
nrBits()
Returns the number of bits that have been read from this bitreader.
|
boolean |
pad(int width)
Check that the rest of the block has been padded with zeros.
|
int |
read(int width)
Read some bits.
|
boolean bit()
throws IOException
IOExceptionlong nrBits()
boolean pad(int width)
throws IOException
width - The size in bits of the block to pad. This will typically be
8, 16, 32, 64, 128, 256, etc.IOExceptionint read(int width) throws IOException
width - The number of bits to read. (0..32)IOException