|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.qrcode.ErrorCorrectionLevel
public final class ErrorCorrectionLevel
See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels defined by the QR code standard.
| Field Summary | |
|---|---|
static ErrorCorrectionLevel |
H
H = ~30% correction |
static ErrorCorrectionLevel |
L
L = ~7% correction |
static ErrorCorrectionLevel |
M
M = ~15% correction |
static ErrorCorrectionLevel |
Q
Q = ~25% correction |
| Method Summary | |
|---|---|
static ErrorCorrectionLevel |
forBits(int bits)
|
int |
getBits()
|
java.lang.String |
getName()
|
int |
ordinal()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ErrorCorrectionLevel L
public static final ErrorCorrectionLevel M
public static final ErrorCorrectionLevel Q
public static final ErrorCorrectionLevel H
| Method Detail |
|---|
public int ordinal()
public int getBits()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||