|
EXIficient | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.siemens.ct.exi.io.BitInputStream
public final class BitInputStream
Read bits and bytes from an underlying input stream.
| Field Summary | |
|---|---|
static int |
BUFFER_CAPACITY
|
| Constructor Summary | |
|---|---|
BitInputStream(java.io.InputStream istream)
Construct an instance of this class from an input stream. |
|
| Method Summary | |
|---|---|
void |
align()
Discard any bits currently in the buffer to byte-align stream |
int |
readBit()
Return next bit from underlying stream. |
int |
readBits(int n)
Read the next n bits and return the result as an integer. |
int |
readDirectByte()
Read and return the next byte without discarding current buffer. |
void |
setInputStream(java.io.InputStream istream)
Resets this instance and sets a new underlying input stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUFFER_CAPACITY
| Constructor Detail |
|---|
public BitInputStream(java.io.InputStream istream)
| Method Detail |
|---|
public void setInputStream(java.io.InputStream istream)
public void align()
throws java.io.IOException
java.io.IOException
public int readBit()
throws java.io.IOException
java.io.IOException
public int readBits(int n)
throws java.io.IOException
n - The number of bits in the range [1,32].
java.io.IOException
public int readDirectByte()
throws java.io.IOException
java.io.IOException
|
EXIficient | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||