Modifier and Type | Class and Description |
---|---|
static class |
Version.ECB
Encapsualtes the parameters for one error-correction block in one symbol version.
|
static class |
Version.ECBlocks
Encapsulates a set of error-correction blocks in one symbol version.
|
Modifier and Type | Field and Description |
---|---|
private int[] |
alignmentPatternCenters |
private Version.ECBlocks[] |
ecBlocks |
private int |
totalCodewords |
private static int[] |
VERSION_DECODE_INFO
See ISO 18004:2006 Annex D.
|
private int |
versionNumber |
private static Version[] |
VERSIONS |
Modifier | Constructor and Description |
---|---|
private |
Version(int versionNumber,
int[] alignmentPatternCenters,
Version.ECBlocks ecBlocks1,
Version.ECBlocks ecBlocks2,
Version.ECBlocks ecBlocks3,
Version.ECBlocks ecBlocks4) |
Modifier and Type | Method and Description |
---|---|
(package private) BitMatrix |
buildFunctionPattern()
See ISO 18004:2006 Annex E
|
private static Version[] |
buildVersions()
See ISO 18004:2006 6.5.1 Table 9
|
(package private) static Version |
decodeVersionInformation(int versionBits) |
int[] |
getAlignmentPatternCenters() |
int |
getDimensionForVersion() |
Version.ECBlocks |
getECBlocksForLevel(ErrorCorrectionLevel ecLevel) |
static Version |
getProvisionalVersionForDimension(int dimension)
Deduces version information purely from QR Code dimensions.
|
int |
getTotalCodewords() |
static Version |
getVersionForNumber(int versionNumber) |
int |
getVersionNumber() |
String |
toString() |
private static final int[] VERSION_DECODE_INFO
private final int versionNumber
private final int[] alignmentPatternCenters
private final Version.ECBlocks[] ecBlocks
private final int totalCodewords
private Version(int versionNumber, int[] alignmentPatternCenters, Version.ECBlocks ecBlocks1, Version.ECBlocks ecBlocks2, Version.ECBlocks ecBlocks3, Version.ECBlocks ecBlocks4)
public int getVersionNumber()
public int[] getAlignmentPatternCenters()
public int getTotalCodewords()
public int getDimensionForVersion()
public Version.ECBlocks getECBlocksForLevel(ErrorCorrectionLevel ecLevel)
public static Version getProvisionalVersionForDimension(int dimension)
Deduces version information purely from QR Code dimensions.
dimension
- dimension in modulesVersion
for a QR Code of that dimensionFormatException
- if dimension is not 1 mod 4public static Version getVersionForNumber(int versionNumber)
static Version decodeVersionInformation(int versionBits)
BitMatrix buildFunctionPattern()
private static Version[] buildVersions()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses