| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: The next bit (0 or 1) or -1 if the end of the stream has been reachedReturns the next bit. |
| pack-priv long | Returns: The value formed by the n bits, or -1 if the end of the stream has been reachedthe number of bits read (up to 8) n)Returns the integer value formed by the n next bits (up to 8 bits). |
| pack-priv int |
| BitStream | back to summary |
|---|---|
| pack-priv BitStream(final InputStream in) | |
| nextBit | back to summary |
|---|---|
| pack-priv int nextBit() throws IOException Returns the next bit.
| |
| nextBits | back to summary |
|---|---|
| pack-priv long nextBits(final int n) throws IOException Returns the integer value formed by the n next bits (up to 8 bits).
| |
| nextByte | back to summary |
|---|---|
| pack-priv int nextByte() throws IOException | |