| Constructor and Description |
|---|
BitInputStream(InputStream in)
Make a BitReader from an InputStream.
|
BitInputStream(InputStream in,
int firstByte)
Make a BitReader.
|
public BitInputStream(InputStream in)
in - An InputStream.public BitInputStream(InputStream in, int firstByte)
in - An InputStreamfirstByte - The first byte, which was probably read from in.public boolean bit()
throws IOException
bit in interface BitReaderIOExceptionpublic long nrBits()
public boolean pad(int factor)
throws IOException
pad in interface BitReaderfactor - The size of the block to pad. 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 © 2013. All Rights Reserved.