Package com.itextpdf.text.pdf.qrcode
Class ErrorCorrectionLevel
- java.lang.Object
-
- com.itextpdf.text.pdf.qrcode.ErrorCorrectionLevel
-
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.
- Since:
- 5.0.2
- Author:
- Sean Owen
-
-
Field Summary
Fields Modifier and Type Field Description static ErrorCorrectionLevel
H
H = ~30% correctionstatic ErrorCorrectionLevel
L
L = ~7% correctionstatic ErrorCorrectionLevel
M
M = ~15% correctionstatic ErrorCorrectionLevel
Q
Q = ~25% correction
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorCorrectionLevel
forBits(int bits)
int
getBits()
String
getName()
int
ordinal()
String
toString()
-
-
-
Field Detail
-
L
public static final ErrorCorrectionLevel L
L = ~7% correction
-
M
public static final ErrorCorrectionLevel M
M = ~15% correction
-
Q
public static final ErrorCorrectionLevel Q
Q = ~25% correction
-
H
public static final ErrorCorrectionLevel H
H = ~30% correction
-
-
Method Detail
-
ordinal
public int ordinal()
-
getBits
public int getBits()
-
getName
public String getName()
-
forBits
public static ErrorCorrectionLevel forBits(int bits)
- Parameters:
bits
- int containing the two bits encoding a QR Code's error correction level- Returns:
ErrorCorrectionLevel
representing the encoded error correction level
-
-