public class DefaultBitInputStream extends java.io.DataInputStream implements BitInputStream
| Constructor and Description |
|---|
DefaultBitInputStream(java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
readBit()
Reads a single bit from the stream.
|
int |
readBits(int n)
Read specified number of bits from the stream.
|
long |
readLongBits(int n)
Read specified number of bits from the stream.
|
void |
reset() |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytespublic final boolean readBit()
throws java.io.IOException
BitInputStreamreadBit in interface BitInputStreamjava.io.IOException - as per streaming contract in java.public final int readBits(int n)
throws java.io.IOException
BitInputStreamreadBits in interface BitInputStreamn - number of bits to readjava.io.IOException - as per streaming contract in java.public final long readLongBits(int n)
throws java.io.IOException
BitInputStreamreadLongBits in interface BitInputStreamn - number of bits to readjava.io.IOException - as per streaming contract in java.public void reset()
reset in class java.io.FilterInputStream