Package com.itextpdf.barcodes.qrcode
Class ErrorCorrectionLevel
java.lang.Object
com.itextpdf.barcodes.qrcode.ErrorCorrectionLevel
See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels defined by the QR code standard.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ErrorCorrectionLevel
H = ~30% correctionstatic final ErrorCorrectionLevel
L = ~7% correctionstatic final ErrorCorrectionLevel
M = ~15% correctionstatic final ErrorCorrectionLevel
Q = ~25% correction -
Method Summary
-
Field Details
-
L
L = ~7% correction -
M
M = ~15% correction -
Q
Q = ~25% correction -
H
H = ~30% correction
-
-
Method Details
-
ordinal
public int ordinal()Gets the ordinal value.- Returns:
- the ordinal
-
getBits
public int getBits()Gets the bits.- Returns:
- the bits
-
getName
Gets the name.- Returns:
- the name
-
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
-