Package ome.codecs
Class BitWriter
- java.lang.Object
-
- ome.codecs.BitWriter
-
public class BitWriter extends java.lang.ObjectDeprecated.Use loci.common.RandomAccessOutputStream insteadA class for writing arbitrary numbers of bits to a byte array.- Author:
- Curtis Rueden ctrueden at wisc.edu
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Deprecated.Tests the BitWriter class.byte[]toByteArray()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.voidwrite(java.lang.String bitString)Deprecated.Writes the bits represented by a bit string to the buffer.
-
-
-
Method Detail
-
write
public void write(int value, int numBits)Deprecated.Writes the given value using the given number of bits.
-
write
public void write(java.lang.String bitString)
Deprecated.Writes the bits represented by a bit string to the buffer.- Throws:
java.lang.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
public static void main(java.lang.String[] args)
Deprecated.Tests the BitWriter class.
-
-