public enum Pdf417EncodeMode extends java.lang.Enum<Pdf417EncodeMode>
Pdf417 barcode encode mode
Enum Constant and Description |
---|
AUTO
In Auto mode, the CodeText is encoded with maximum data compactness.
|
BINARY
In Binary mode, the CodeText is encoded with maximum data compactness.
|
ECI
In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
|
EXTENDED |
Modifier and Type | Method and Description |
---|---|
static Pdf417EncodeMode |
fromValue(int value) |
int |
getValue() |
static Pdf417EncodeMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Pdf417EncodeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pdf417EncodeMode AUTO
In Auto mode, the CodeText is encoded with maximum data compactness. Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier. If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
public static final Pdf417EncodeMode BINARY
In Binary mode, the CodeText is encoded with maximum data compactness. If a Unicode character is found, an exception is thrown.
public static final Pdf417EncodeMode ECI
In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier. If a character is found that is not supported by the selected ECI encoding, an exception is thrown. Please note that some old (pre 2006) scanners may not support this mode.
public static final Pdf417EncodeMode EXTENDED
Extended mode which supports multi ECI modes.
It is better to use Pdf417ExtCodetextBuilder for extended codetext generation.
Use Display2DText property to set visible text to removing managing characters.
ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
All unicode characters after ECI identifier are automatically encoded into correct character codeset.
public static Pdf417EncodeMode[] values()
for (Pdf417EncodeMode c : Pdf417EncodeMode.values()) System.out.println(c);
public static Pdf417EncodeMode 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 namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static Pdf417EncodeMode fromValue(int value)