BitInputStream, Closeable, DataInput, AutoCloseablepublic class DefaultBitInputStream extends DataInputStream implements BitInputStream
in| Constructor | Description |
|---|---|
DefaultBitInputStream(InputStream in) |
| Modifier and Type | Method | 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, skipBytesavailable, close, mark, markSupported, read, skipreadAllBytes, readNBytes, transferTopublic DefaultBitInputStream(InputStream in)
public final boolean readBit()
throws IOException
BitInputStreamreadBit in interface BitInputStreamIOException - as per streaming contract in java.public final int readBits(int n)
throws IOException
BitInputStreamreadBits in interface BitInputStreamn - number of bits to readIOException - as per streaming contract in java.public final long readLongBits(int n)
throws IOException
BitInputStreamreadLongBits in interface BitInputStreamn - number of bits to readIOException - as per streaming contract in java.public void reset()
reset in class FilterInputStream