Package com.itextpdf.text.pdf.qrcode
Class Version
java.lang.Object
com.itextpdf.text.pdf.qrcode.Version
See ISO 18004:2006 Annex D
- Since:
- 5.0.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEncapsualtes the parameters for one error-correction block in one symbol version.static final classEncapsulates a set of error-correction blocks in one symbol version. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]private final Version.ECBlocks[]private final intprivate static final int[]See ISO 18004:2006 Annex D.private final intprivate static final Version[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateVersion(int versionNumber, int[] alignmentPatternCenters, Version.ECBlocks ecBlocks1, Version.ECBlocks ecBlocks2, Version.ECBlocks ecBlocks3, Version.ECBlocks ecBlocks4) -
Method Summary
Modifier and TypeMethodDescription(package private) BitMatrixSee ISO 18004:2006 Annex Eprivate static Version[]See ISO 18004:2006 6.5.1 Table 9(package private) static VersiondecodeVersionInformation(int versionBits) int[]intgetECBlocksForLevel(ErrorCorrectionLevel ecLevel) static VersiongetProvisionalVersionForDimension(int dimension) Deduces version information purely from QR Code dimensions.intstatic VersiongetVersionForNumber(int versionNumber) inttoString()
-
Field Details
-
VERSION_DECODE_INFO
private static final int[] VERSION_DECODE_INFOSee ISO 18004:2006 Annex D. Element i represents the raw version bits that specify version i + 7 -
VERSIONS
-
versionNumber
private final int versionNumber -
alignmentPatternCenters
private final int[] alignmentPatternCenters -
ecBlocks
-
totalCodewords
private final int totalCodewords
-
-
Constructor Details
-
Version
private Version(int versionNumber, int[] alignmentPatternCenters, Version.ECBlocks ecBlocks1, Version.ECBlocks ecBlocks2, Version.ECBlocks ecBlocks3, Version.ECBlocks ecBlocks4)
-
-
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:
Versionfor a QR Code of that dimension
-
getVersionForNumber
-
decodeVersionInformation
-
buildFunctionPattern
BitMatrix buildFunctionPattern()See ISO 18004:2006 Annex E -
toString
-
buildVersions
See ISO 18004:2006 6.5.1 Table 9
-