Package com.itextpdf.text.pdf.qrcode
Class BitVector
java.lang.Object
com.itextpdf.text.pdf.qrcode.BitVector
JAVAPORT: This should be combined with BitArray in the future, although that class is not yet
dynamically resizeable. This implementation is reasonable but there is a lot of function calling
in loops I'd like to get rid of.
- Since:
- 5.0.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private static final intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendBit(int bit) voidappendBits(int value, int numBits) voidappendBitVector(BitVector bits) private voidappendByte(int value) intat(int index) byte[]getArray()intsize()inttoString()void
-
Field Details
-
sizeInBits
private int sizeInBits -
array
private byte[] array -
DEFAULT_SIZE_IN_BYTES
private static final int DEFAULT_SIZE_IN_BYTES- See Also:
-
-
Constructor Details
-
BitVector
public BitVector()
-
-
Method Details
-
at
public int at(int index) -
size
public int size() -
sizeInBytes
public int sizeInBytes() -
appendBit
public void appendBit(int bit) -
appendBits
public void appendBits(int value, int numBits) -
appendBitVector
-
xor
-
toString
-
getArray
public byte[] getArray() -
appendByte
private void appendByte(int value)
-