Class ErrorCorrectionLevel
- java.lang.Object
-
- zext.plantuml.com.google.zxing.qrcode.decoder.ErrorCorrectionLevel
-
public final class ErrorCorrectionLevel extends java.lang.ObjectSee ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels defined by the QR code standard.
-
-
Field Summary
Fields Modifier and Type Field Description static ErrorCorrectionLevelHH = ~30% correctionstatic ErrorCorrectionLevelLL = ~7% correctionstatic ErrorCorrectionLevelMM = ~15% correctionstatic ErrorCorrectionLevelQQ = ~25% correction
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorCorrectionLevelforBits(int bits)intgetBits()java.lang.StringgetName()intordinal()java.lang.StringtoString()
-
-
-
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 java.lang.String getName()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
forBits
public static ErrorCorrectionLevel forBits(int bits)
- Parameters:
bits- int containing the two bits encoding a QR Code's error correction level- Returns:
ErrorCorrectionLevelrepresenting the encoded error correction level
-
-