| Constructor and Description |
|---|
BitInputStream(InputStream in)
Make a BitReader from an InputStream.
|
public BitInputStream(InputStream in)
in - An InputStream.public boolean bit()
throws IOException
bit in interface BitReaderIOExceptionpublic long nrBits()
public boolean pad(int width)
throws IOException
pad in interface BitReaderwidth - The size of the block to pad in bits.
This will typically be 8, 16, 32, 64, 128, 256, etc.IOExceptionpublic int read(int width)
throws IOException
read in interface BitReaderwidth - The number of bits to read. (0..32)IOExceptionCopyright © 2016. All Rights Reserved.