Package com.google.zxing.qrcode.decoder
Class Version
java.lang.Object
com.google.zxing.qrcode.decoder.Version
See ISO 18004:2006 Annex D
- Author:
- Sean Owen
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classEncapsulates the parameters for one error-correction block in one symbol version.static final classEncapsulates a set of error-correction blocks in one symbol version.
- 
Method SummaryModifier and TypeMethodDescriptionint[]intgetECBlocksForLevel(ErrorCorrectionLevel ecLevel) static VersiongetProvisionalVersionForDimension(int dimension) Deduces version information purely from QR Code dimensions.intstatic VersiongetVersionForNumber(int versionNumber) inttoString()
- 
Method Details- 
getVersionNumberpublic int getVersionNumber()
- 
getAlignmentPatternCenterspublic int[] getAlignmentPatternCenters()
- 
getTotalCodewordspublic int getTotalCodewords()
- 
getDimensionForVersionpublic int getDimensionForVersion()
- 
getECBlocksForLevel
- 
getProvisionalVersionForDimensionDeduces 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
- 
toString
 
-