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 IOException
IOException
void pad(int width) throws IOException
width
- The size in bits of the block to pad. This will typically be
8, 16, 32, 64, 128, 256, etc.IOException
void write(int bits, int width) throws IOException
bits
- The bits to be written.width
- The number of bits to write. (0..32)IOException
void zero() throws IOException
IOException