Class FormatInformation
java.lang.Object
com.google.zxing.qrcode.decoder.FormatInformation
Encapsulates a QR Code's format information, including the data mask used and error correction level.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byteprivate final ErrorCorrectionLevelprivate static final int[][]See ISO 18004:2006, Annex C, Table C.1private static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static FormatInformationdecodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2) private static FormatInformationdoDecodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2) boolean(package private) byte(package private) ErrorCorrectionLevelinthashCode()(package private) static intnumBitsDiffering(int a, int b)
-
Field Details
-
FORMAT_INFO_MASK_QR
private static final int FORMAT_INFO_MASK_QR- See Also:
-
FORMAT_INFO_DECODE_LOOKUP
private static final int[][] FORMAT_INFO_DECODE_LOOKUPSee ISO 18004:2006, Annex C, Table C.1 -
errorCorrectionLevel
-
dataMask
private final byte dataMask
-
-
Constructor Details
-
FormatInformation
private FormatInformation(int formatInfo)
-
-
Method Details
-
numBitsDiffering
static int numBitsDiffering(int a, int b) -
decodeFormatInformation
- Parameters:
maskedFormatInfo1- format info indicator, with mask still appliedmaskedFormatInfo2- second copy of same info; both are checked at the same time to establish best match- Returns:
- information about the format it specifies, or
nullif doesn't seem to match any known pattern
-
doDecodeFormatInformation
private static FormatInformation doDecodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2) -
getErrorCorrectionLevel
ErrorCorrectionLevel getErrorCorrectionLevel() -
getDataMask
byte getDataMask() -
hashCode
-
equals
-