Package com.itextpdf.text.pdf.qrcode
Class Mode
java.lang.Object
com.itextpdf.text.pdf.qrcode.Mode
See ISO 18004:2006, 6.4.1, Tables 2 and 3. This enum encapsulates the various modes in which data can be encoded to bits in the QR code standard.
- Since:
- 5.0.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TERMINATOR
-
NUMERIC
-
ALPHANUMERIC
-
STRUCTURED_APPEND
-
BYTE
-
ECI
-
KANJI
-
FNC1_FIRST_POSITION
-
FNC1_SECOND_POSITION
-
characterCountBitsForVersions
private final int[] characterCountBitsForVersions -
bits
private final int bits -
name
-
-
Constructor Details
-
Mode
-
-
Method Details
-
forBits
- Parameters:
bits
- four bits encoding a QR Code data mode- Returns:
Mode
encoded by these bits- Throws:
IllegalArgumentException
- if bits do not correspond to a known mode
-
getCharacterCountBits
-
getBits
public int getBits() -
getName
-
toString
-