public final class Version
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Version.ECB |
Encapsualtes the parameters for one error-correction block in one symbol
version.
|
| Modifier and Type | Method | Description |
|---|---|---|
int[] |
getAlignmentPatternCenters() |
|
int |
getDimensionForVersion() |
|
Version.ECB |
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() |
|
java.lang.String |
toString() |
public int getVersionNumber()
public int[] getAlignmentPatternCenters()
public int getTotalCodewords()
public int getDimensionForVersion()
public Version.ECB getECBlocksForLevel(ErrorCorrectionLevel ecLevel)
public static Version getProvisionalVersionForDimension(int dimension)
Deduces version information purely from QR Code dimensions.
dimension - dimension in modulesjava.lang.RuntimeException - if dimension is not 1 mod 4public static Version getVersionForNumber(int versionNumber)
public java.lang.String toString()
toString in class java.lang.Object