Class Mode
- java.lang.Object
-
- ext.plantuml.com.google.zxing.qrcode.decoder.Mode
-
public final class Mode extends Object
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.
- Author:
- Sean Owen
-
-
Field Summary
Fields Modifier and Type Field Description static Mode
ALPHANUMERIC
static Mode
BYTE
static Mode
ECI
static Mode
FNC1_FIRST_POSITION
static Mode
FNC1_SECOND_POSITION
static Mode
KANJI
static Mode
NUMERIC
static Mode
STRUCTURED_APPEND
static Mode
TERMINATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Mode
forBits(int bits)
int
getBits()
int
getCharacterCountBits(Version version)
String
getName()
String
toString()
-
-
-
Field Detail
-
TERMINATOR
public static final Mode TERMINATOR
-
NUMERIC
public static final Mode NUMERIC
-
ALPHANUMERIC
public static final Mode ALPHANUMERIC
-
STRUCTURED_APPEND
public static final Mode STRUCTURED_APPEND
-
BYTE
public static final Mode BYTE
-
ECI
public static final Mode ECI
-
KANJI
public static final Mode KANJI
-
FNC1_FIRST_POSITION
public static final Mode FNC1_FIRST_POSITION
-
FNC1_SECOND_POSITION
public static final Mode FNC1_SECOND_POSITION
-
-
Method Detail
-
forBits
public static Mode forBits(int bits)
- 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
public int getCharacterCountBits(Version version)
-
getBits
public int getBits()
-
getName
public String getName()
-
-