public final class LSBBitReader extends Object
| Constructor and Description |
|---|
LSBBitReader(ImageInputStream imageInput) |
| Modifier and Type | Method and Description |
|---|---|
long |
peekBits(int bits)
Reads the specified number of bits from the buffer in an LSB-first way.
|
int |
readBit() |
long |
readBits(int bits)
Reads the specified number of bits from the stream in an LSB-first way and advances the bitOffset.
|
public LSBBitReader(ImageInputStream imageInput)
public long readBits(int bits)
throws IOException
bits - the number of bits to readIOException - if an I/O error occurspeekBits(int)public long peekBits(int bits)
throws IOException
bits - the number of bits to peek (max 56)IOException - if an I/O error occursreadBits(int)public int readBit()
throws IOException
IOExceptionCopyright © 2023. All rights reserved.