Modifier and Type | Field and Description |
---|---|
static Mode |
ALPHANUMERIC |
private int |
bits |
static Mode |
BYTE |
private int[] |
characterCountBitsForVersions |
static Mode |
ECI |
static Mode |
FNC1_FIRST_POSITION |
static Mode |
FNC1_SECOND_POSITION |
static Mode |
KANJI |
private String |
name |
static Mode |
NUMERIC |
static Mode |
STRUCTURED_APPEND |
static Mode |
TERMINATOR |
Modifier | Constructor and Description |
---|---|
private |
Mode(int[] characterCountBitsForVersions,
int bits,
String name) |
Modifier and Type | Method and Description |
---|---|
static Mode |
forBits(int bits) |
int |
getBits() |
int |
getCharacterCountBits(Version version) |
String |
getName() |
String |
toString() |
public static final Mode TERMINATOR
public static final Mode ALPHANUMERIC
public static final Mode STRUCTURED_APPEND
public static final Mode FNC1_FIRST_POSITION
public static final Mode FNC1_SECOND_POSITION
private final int[] characterCountBitsForVersions
private final int bits
public static Mode forBits(int bits)
bits
- four bits encoding a QR Code data modeMode
encoded by these bitsIllegalArgumentException
- if bits do not correspond to a known modepublic int getCharacterCountBits(Version version)
public int getBits()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses