public class BitInputStream
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
BitInputStream(java.io.InputStream in) |
BitInputStream(java.io.InputStream in,
java.nio.ByteOrder bitOrder) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
readBit() |
void |
readFully(byte[] b) |
int |
readInt(int length) |
int |
readInt(int length,
java.nio.ByteOrder bitOrder) |
long |
skip(long n) |
public BitInputStream(java.io.InputStream in)
public BitInputStream(java.io.InputStream in, java.nio.ByteOrder bitOrder)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public int readBit() throws java.io.IOException
java.io.IOException
public int readInt(int length) throws java.io.IOException
java.io.IOException
public int readInt(int length, java.nio.ByteOrder bitOrder) throws java.io.IOException
java.io.IOException
public void readFully(byte[] b) throws java.io.IOException
java.io.IOException
public long skip(long n) throws java.io.IOException
n
- the number of bits to be skipped.java.io.IOException