class BitStream extends BitInputStream
Constructor and Description |
---|
BitStream(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
nextBit()
Returns the next bit.
|
(package private) long |
nextBits(int n)
Returns the integer value formed by the n next bits (up to 8 bits).
|
(package private) int |
nextByte() |
alignWithByteBoundary, bitsAvailable, bitsCached, clearBitCache, close, getBytesRead, readBits
int nextBit() throws java.io.IOException
java.io.IOException
long nextBits(int n) throws java.io.IOException
n
- the number of bits read (up to 8)java.io.IOException
int nextByte() throws java.io.IOException
java.io.IOException