public class BitWriter extends Object
Modifier and Type | Field and Description |
---|---|
private int |
bit
Deprecated.
Bit index into current byte of the buffer.
|
private byte[] |
buf
Deprecated.
Buffer storing all bits written thus far.
|
private int |
index
Deprecated.
Byte index into the buffer.
|
private static org.slf4j.Logger |
LOGGER
Deprecated.
|
Constructor and Description |
---|
BitWriter()
Deprecated.
Constructs a new bit writer.
|
BitWriter(int size)
Deprecated.
Constructs a new bit writer with the given initial buffer size.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Deprecated.
Tests the BitWriter class.
|
byte[] |
toByteArray()
Deprecated.
Gets an array containing all bits written thus far.
|
void |
write(int value,
int numBits)
Deprecated.
Writes the given value using the given number of bits.
|
void |
write(String bitString)
Deprecated.
Writes the bits represented by a bit string to the buffer.
|
private static final org.slf4j.Logger LOGGER
private byte[] buf
private int index
private int bit
public BitWriter()
public BitWriter(int size)
public void write(int value, int numBits)
public void write(String bitString)
IllegalArgumentException
- If any characters other than
'0' and '1' appear in the string.public byte[] toByteArray()
public static void main(String[] args)
Copyright © 2016 Open Microscopy Environment