Package ome.codecs
Class BitWriter
java.lang.Object
ome.codecs.BitWriter
Deprecated.
Use loci.common.RandomAccessOutputStream instead
A class for writing arbitrary numbers of bits to a byte array.
- Author:
- Curtis Rueden ctrueden at wisc.edu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDeprecated.Tests the BitWriter class.byte[]Deprecated.Gets an array containing all bits written thus far.voidwrite(int value, int numBits) Deprecated.Writes the given value using the given number of bits.voidDeprecated.Writes the bits represented by a bit string to the buffer.
-
Constructor Details
-
BitWriter
public BitWriter()Deprecated.Constructs a new bit writer. -
BitWriter
public BitWriter(int size) Deprecated.Constructs a new bit writer with the given initial buffer size.
-
-
Method Details
-
write
public void write(int value, int numBits) Deprecated.Writes the given value using the given number of bits. -
write
Deprecated.Writes the bits represented by a bit string to the buffer.- Throws:
IllegalArgumentException- If any characters other than '0' and '1' appear in the string.
-
toByteArray
public byte[] toByteArray()Deprecated.Gets an array containing all bits written thus far. -
main
Deprecated.Tests the BitWriter class.
-