final class FormatInformation extends Object
Encapsulates a QR Code's format information, including the data mask used and error correction level.
ErrorCorrectionLevel
Modifier and Type | Field and Description |
---|---|
private static int[] |
BITS_SET_IN_HALF_BYTE
Offset i holds the number of 1 bits in the binary representation of i
|
private byte |
dataMask |
private ErrorCorrectionLevel |
errorCorrectionLevel |
private static int[][] |
FORMAT_INFO_DECODE_LOOKUP
See ISO 18004:2006, Annex C, Table C.1
|
private static int |
FORMAT_INFO_MASK_QR |
Modifier | Constructor and Description |
---|---|
private |
FormatInformation(int formatInfo) |
Modifier and Type | Method and Description |
---|---|
(package private) static FormatInformation |
decodeFormatInformation(int maskedFormatInfo1,
int maskedFormatInfo2) |
private static FormatInformation |
doDecodeFormatInformation(int maskedFormatInfo1,
int maskedFormatInfo2) |
boolean |
equals(Object o) |
(package private) byte |
getDataMask() |
(package private) ErrorCorrectionLevel |
getErrorCorrectionLevel() |
int |
hashCode() |
(package private) static int |
numBitsDiffering(int a,
int b) |
private static final int FORMAT_INFO_MASK_QR
private static final int[][] FORMAT_INFO_DECODE_LOOKUP
private static final int[] BITS_SET_IN_HALF_BYTE
private final ErrorCorrectionLevel errorCorrectionLevel
private final byte dataMask
private FormatInformation(int formatInfo)
static int numBitsDiffering(int a, int b)
static FormatInformation decodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2)
maskedFormatInfo1
- format info indicator, with mask still appliedmaskedFormatInfo2
- second copy of same info; both are checked at the same time
to establish best matchnull
if doesn't seem to match any known patternprivate static FormatInformation doDecodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2)
ErrorCorrectionLevel getErrorCorrectionLevel()
byte getDataMask()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses