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.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic int readBit()
throws java.io.IOException
java.io.IOExceptionpublic int readInt(int length)
throws java.io.IOException
java.io.IOExceptionpublic int readInt(int length,
java.nio.ByteOrder bitOrder)
throws java.io.IOException
java.io.IOExceptionpublic void readFully(byte[] b)
throws java.io.IOException
java.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
n - the number of bits to be skipped.java.io.IOException