Package com.google.zxing.qrcode.decoder
Class Version
java.lang.Object
com.google.zxing.qrcode.decoder.Version
public final class Version extends Object
See ISO 18004:2006 Annex D
- Author:
- Sean Owen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersion.ECBEncapsulates the parameters for one error-correction block in one symbol version.static classVersion.ECBlocksEncapsulates a set of error-correction blocks in one symbol version. -
Method Summary
Modifier and Type Method Description (package private) BitMatrixbuildFunctionPattern()See ISO 18004:2006 Annex E(package private) static VersiondecodeVersionInformation(int versionBits)int[]getAlignmentPatternCenters()intgetDimensionForVersion()Version.ECBlocksgetECBlocksForLevel(ErrorCorrectionLevel ecLevel)static VersiongetProvisionalVersionForDimension(int dimension)Deduces version information purely from QR Code dimensions.intgetTotalCodewords()static VersiongetVersionForNumber(int versionNumber)intgetVersionNumber()StringtoString()
-
Method Details
-
getVersionNumber
public int getVersionNumber() -
getAlignmentPatternCenters
public int[] getAlignmentPatternCenters() -
getTotalCodewords
public int getTotalCodewords() -
getDimensionForVersion
public int getDimensionForVersion() -
getECBlocksForLevel
-
getProvisionalVersionForDimension
Deduces version information purely from QR Code dimensions.
- Parameters:
dimension- dimension in modules- Returns:
- Version for a QR Code of that dimension
- Throws:
FormatException- if dimension is not 1 mod 4
-
getVersionForNumber
-
decodeVersionInformation
-
buildFunctionPattern
BitMatrix buildFunctionPattern()See ISO 18004:2006 Annex E -
toString
-