Constructor and Description |
---|
BitInputStream(java.io.InputStream in)
Make a BitReader from an InputStream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bit()
Read one bit.
|
long |
nrBits()
Get the number of bits that have been read from this BitInputStream.
|
boolean |
pad(int width)
Check that the rest of the block has been padded with zeroes.
|
int |
read(int width)
Read some bits.
|
public BitInputStream(java.io.InputStream in)
in
- An InputStream.public boolean bit() throws java.io.IOException
public long nrBits()
public boolean pad(int width) throws java.io.IOException
Copyright © 2014. All Rights Reserved.