Class ErrorCorrectionLevel

java.lang.Object
com.itextpdf.barcodes.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.
  • Field Details

  • Method Details

    • ordinal

      public int ordinal()
      Gets the ordinal value.
      Returns:
      the ordinal
    • getBits

      public int getBits()
      Gets the bits.
      Returns:
      the bits
    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • 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