ByteBuf when more bits are required.
| Modifier and Type | Field and Description |
|---|---|
| private long | bitBuffer
A buffer of bits read from the input stream that have not yet been returned. |
| private int | |
| private ByteBuf | |
| private static final int | MAX_COUNT_OF_READABLE_BYTES
Maximum count of possible readable bytes to check. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | Returns: true if count bits are available for reading, otherwise falseThe number of bits to check count)Checks that the specified number of bits available for reading. |
| pack-priv boolean | Returns: true if count bytes are available for reading, otherwise falseThe number of bytes to check count)Checks that the specified number of bytes available for reading. |
| pack-priv boolean | Returns: true if one bit is available for reading, otherwise falseChecks that at least one bit is available for reading. |
| pack-priv int | |
| pack-priv boolean | Returns: true if the bit read was 1, otherwise falseReads a single bit from the |
| pack-priv int | |
| pack-priv void | |
| pack-priv void |
| bitBuffer | back to summary |
|---|---|
| private long bitBuffer A buffer of bits read from the input stream that have not yet been returned. | |
| bitCount | back to summary |
|---|---|
| private int bitCount The number of bits currently buffered in | |
| in | back to summary |
|---|---|
| private ByteBuf in The | |
| MAX_COUNT_OF_READABLE_BYTES | back to summary |
|---|---|
| private static final int MAX_COUNT_OF_READABLE_BYTES Maximum count of possible readable bytes to check. | |
| Bzip2BitReader | back to summary |
|---|---|
| pack-priv Bzip2BitReader() | |
| hasReadableBits | back to summary |
|---|---|
| pack-priv boolean hasReadableBits(int count) Checks that the specified number of bits available for reading.
| |
| hasReadableBytes | back to summary |
|---|---|
| pack-priv boolean hasReadableBytes(int count) Checks that the specified number of bytes available for reading.
| |
| isReadable | back to summary |
|---|---|
| pack-priv boolean isReadable() Checks that at least one bit is available for reading.
| |
| readBits | back to summary |
|---|---|
| pack-priv int readBits(final int count) Reads up to 32 bits from the
| |
| readBoolean | back to summary |
|---|---|
| pack-priv boolean readBoolean() Reads a single bit from the
| |
| readInt | back to summary |
|---|---|
| pack-priv int readInt() Reads 32 bits of input as an integer.
| |
| refill | back to summary |
|---|---|
| pack-priv void refill() Refill the | |
| setByteBuf | back to summary |
|---|---|
| pack-priv void setByteBuf(ByteBuf in) Set the | |