public final class Mode
extends java.lang.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.
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 |
Modifier and Type | Method | Description |
---|---|---|
static Mode |
forBits(int bits) |
|
int |
getBits() |
|
int |
getCharacterCountBits(Version version) |
|
java.lang.String |
getName() |
|
java.lang.String |
toString() |
public static final Mode TERMINATOR
public static final Mode NUMERIC
public static final Mode ALPHANUMERIC
public static final Mode STRUCTURED_APPEND
public static final Mode BYTE
public static final Mode ECI
public static final Mode KANJI
public static final Mode FNC1_FIRST_POSITION
public static final Mode FNC1_SECOND_POSITION
public static Mode forBits(int bits)
bits
- four bits encoding a QR Code data modeMode
encoded by these bitsjava.lang.IllegalArgumentException
- if bits do not correspond to a known modepublic int getCharacterCountBits(Version version)
public int getBits()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1998–2018. All rights reserved.