BitInputStream
, Closeable
, DataInput
, AutoCloseable
public 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, skipBytes
available, close, mark, markSupported, read, skip
readAllBytes, readNBytes, transferTo
public DefaultBitInputStream(InputStream in)
public final boolean readBit() throws IOException
BitInputStream
readBit
in interface BitInputStream
IOException
- as per streaming contract in java.public final int readBits(int n) throws IOException
BitInputStream
readBits
in interface BitInputStream
n
- number of bits to readIOException
- as per streaming contract in java.public final long readLongBits(int n) throws IOException
BitInputStream
readLongBits
in interface BitInputStream
n
- number of bits to readIOException
- as per streaming contract in java.public void reset()
reset
in class FilterInputStream