public interface BitInputStream
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this stream and the underlying input stream.
|
int |
getBitPosition()
Returns the current bit position, which ascends from 0 to 7 as bits are read.
|
int |
read()
Reads a bit from this stream.
|
int |
readByte()
Discards the remainder of the current byte (if any) and reads the next
whole byte from the stream.
|
int |
readNoEof()
Reads a bit from this stream.
|
int getBitPosition()
int readByte() throws java.io.IOException
java.io.IOException
int read() throws java.io.IOException
java.io.IOException
- if an I/O exception occurredint readNoEof() throws java.io.IOException
EOFException
if the end of stream is reached. The end of stream always occurs on a byte boundary.java.io.IOException
- if an I/O exception occurredjava.io.EOFException
- if the end of stream is reachedvoid close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException
- if an I/O exception occurred