public final class ErrorCorrectionLevel extends Object
See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels defined by the QR code standard.
Modifier and Type | Field and Description |
---|---|
static ErrorCorrectionLevel |
H
H = ~30% correction
|
static ErrorCorrectionLevel |
L
L = ~7% correction
|
static ErrorCorrectionLevel |
M
M = ~15% correction
|
static ErrorCorrectionLevel |
Q
Q = ~25% correction
|
Modifier and Type | Method and Description |
---|---|
static ErrorCorrectionLevel |
forBits(int bits) |
int |
getBits() |
String |
getName() |
int |
ordinal()
Gets the ordinal value.
|
String |
toString() |
public static final ErrorCorrectionLevel L
public static final ErrorCorrectionLevel M
public static final ErrorCorrectionLevel Q
public static final ErrorCorrectionLevel H
public int ordinal()
public int getBits()
public String getName()
public static ErrorCorrectionLevel forBits(int bits)
bits
- int containing the two bits encoding a QR Code's error correction level
ErrorCorrectionLevel
representing the encoded error correction level
Copyright © 1998–2018 iText Group NV. All rights reserved.