Package com.itextpdf.text.pdf.qrcode
Class Version
- java.lang.Object
-
- com.itextpdf.text.pdf.qrcode.Version
-
public final class Version extends java.lang.ObjectSee ISO 18004:2006 Annex D- Since:
- 5.0.2
- Author:
- Sean Owen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersion.ECBEncapsualtes 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()java.lang.StringtoString()
-
-
-
Method Detail
-
getVersionNumber
public int getVersionNumber()
-
getAlignmentPatternCenters
public int[] getAlignmentPatternCenters()
-
getTotalCodewords
public int getTotalCodewords()
-
getDimensionForVersion
public int getDimensionForVersion()
-
getECBlocksForLevel
public Version.ECBlocks getECBlocksForLevel(ErrorCorrectionLevel ecLevel)
-
getProvisionalVersionForDimension
public static Version getProvisionalVersionForDimension(int dimension)
Deduces version information purely from QR Code dimensions.
- Parameters:
dimension- dimension in modules- Returns:
Versionfor a QR Code of that dimension- Throws:
FormatException- if dimension is not 1 mod 4
-
getVersionForNumber
public static Version getVersionForNumber(int versionNumber)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-