Package com.google.zxing.qrcode.decoder
Class FormatInformation
- java.lang.Object
-
- com.google.zxing.qrcode.decoder.FormatInformation
-
final class FormatInformation extends Object
Encapsulates a QR Code's format information, including the data mask used and error correction level.
- Author:
- Sean Owen See DataMask
- See Also:
ErrorCorrectionLevel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static FormatInformationdecodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2)booleanequals(Object o)(package private) bytegetDataMask()(package private) ErrorCorrectionLevelgetErrorCorrectionLevel()inthashCode()(package private) static intnumBitsDiffering(int a, int b)
-
-
-
Method Detail
-
numBitsDiffering
static int numBitsDiffering(int a, int b)
-
decodeFormatInformation
static FormatInformation decodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2)
- 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
-
getErrorCorrectionLevel
ErrorCorrectionLevel getErrorCorrectionLevel()
-
getDataMask
byte getDataMask()
-
-