Package com.itextpdf.text.pdf.qrcode
Class ErrorCorrectionLevel
java.lang.Object
com.itextpdf.text.pdf.qrcode.ErrorCorrectionLevel
See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels defined by the QR code standard.
- Since:
- 5.0.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private static final ErrorCorrectionLevel[]
static final ErrorCorrectionLevel
H = ~30% correctionstatic final ErrorCorrectionLevel
L = ~7% correctionstatic final ErrorCorrectionLevel
M = ~15% correctionprivate final String
private final int
static final ErrorCorrectionLevel
Q = ~25% correction -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
L
L = ~7% correction -
M
M = ~15% correction -
Q
Q = ~25% correction -
H
H = ~30% correction -
FOR_BITS
-
ordinal
private final int ordinal -
bits
private final int bits -
name
-
-
Constructor Details
-
ErrorCorrectionLevel
-
-
Method Details
-
ordinal
public int ordinal() -
getBits
public int getBits() -
getName
-
toString
-
forBits
- Parameters:
bits
- int containing the two bits encoding a QR Code's error correction level- Returns:
ErrorCorrectionLevel
representing the encoded error correction level
-