public interface BitWriter
| Modifier and Type | Method and Description |
|---|---|
void |
one()
Write a 1 bit.
|
void |
pad(int width)
Pad the rest of the block with zeros and flush.
|
void |
write(int bits,
int width)
Write some bits.
|
void |
zero()
Write a 0 bit.
|
void one() throws java.io.IOException
java.io.IOExceptionvoid pad(int width) throws java.io.IOException
width - The size in bits of the block to pad. This will typically be
8, 16, 32, 64, 128, 256, etc.java.io.IOExceptionvoid write(int bits,
int width)
throws java.io.IOException
bits - The bits to be written.width - The number of bits to write. (0..32)java.io.IOExceptionvoid zero() throws java.io.IOException
java.io.IOException