com.itextpdf.text.pdf.qrcode
Class ErrorCorrectionLevel

java.lang.Object
  extended by 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
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()
           
 String getName()
           
 int ordinal()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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()

toString

public String toString()
Overrides:
toString in class Object

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


Copyright © 2013. All Rights Reserved.