|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Mode>
com.google.zxing.qrcode.decoder.Mode
public enum 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.
Enum Constant Summary | |
---|---|
ALPHANUMERIC
|
|
BYTE
|
|
ECI
|
|
FNC1_FIRST_POSITION
|
|
FNC1_SECOND_POSITION
|
|
HANZI
See GBT 18284-2000; "Hanzi" is a transliteration of this mode name. |
|
KANJI
|
|
NUMERIC
|
|
STRUCTURED_APPEND
|
|
TERMINATOR
|
Method Summary | |
---|---|
static Mode |
forBits(int bits)
|
int |
getBits()
|
int |
getCharacterCountBits(Version version)
|
static Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Mode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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 final Mode HANZI
Method Detail |
---|
public static Mode[] values()
for (Mode c : Mode.values()) System.out.println(c);
public static Mode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static Mode forBits(int bits)
bits
- four bits encoding a QR Code data mode
java.lang.IllegalArgumentException
- if bits do not correspond to a known modepublic int getCharacterCountBits(Version version)
version
- version in question
Version
, to encode the
count of characters that will follow encoded in this Modepublic int getBits()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |