public final class BitInputStream
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
BitInputStream(java.io.InputStream in)
Constructs a BitInputStream using the given InputStream
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream and the underlying inputStream stream.
|
int |
read()
Reads a bit from the stream.
|
int |
readNoEof()
Reads a bit from this stream.
|
public BitInputStream(java.io.InputStream in)
in - the inputStream streamjava.lang.NullPointerException - if the inputStream stream is nullpublic int read()
throws java.io.IOException
java.io.IOException - for read failurepublic int readNoEof()
throws java.io.IOException
java.io.IOException - if an I/O exception occurredjava.io.EOFException - if the end of stream is reachedpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException - if needed