public final class Version extends Object
| Modifier and Type | Class and Description |
|---|---|
static class | Version.ECBEncapsulates the parameters for one error-correction block in one symbol version. |
static class | Version.ECBlocksEncapsulates a set of error-correction blocks in one symbol version. |
| Modifier and Type | Method and Description |
|---|---|
(package private) BitMatrix | buildFunctionPattern()See ISO 18004:2006 Annex E |
(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()toString. |
BitMatrix buildFunctionPattern()
static Version decodeVersionInformation(int versionBits)
versionBits - raw version bitspublic int[] getAlignmentPatternCenters()
public int getDimensionForVersion()
public Version.ECBlocks getECBlocksForLevel(ErrorCorrectionLevel ecLevel)
public static Version getProvisionalVersionForDimension(int dimension) throws FormatException
Deduces version information purely from QR Code dimensions.
dimension - dimension in modulesFormatException - if dimension is not 1 mod 4public int getTotalCodewords()
public static Version getVersionForNumber(int versionNumber)
public int getVersionNumber()