public enum EncodeHintType extends Enum<EncodeHintType>
| Enum Constant and Description |
|---|
AZTEC_LAYERS
Specifies the required number of layers for an Aztec code.
|
CHARACTER_SET
Specifies what character encoding to use where applicable (type
String) |
CODE128_COMPACT
|
DATA_MATRIX_COMPACT
|
DATA_MATRIX_SHAPE
Specifies the matrix shape for Data Matrix (type
SymbolShapeHint) |
ERROR_CORRECTION
Specifies what degree of error correction to use, for example in QR Codes.
|
FORCE_C40
|
FORCE_CODE_SET
Forces which encoding will be used.
|
GS1_FORMAT
|
MARGIN
Specifies margin, in pixels, to use when generating the barcode.
|
MAX_SIZE
Deprecated.
without replacement
|
MIN_SIZE
Deprecated.
use width/height params in
DataMatrixWriter.encode(String, BarcodeFormat, int, int) |
PDF417_AUTO_ECI
|
PDF417_COMPACT
|
PDF417_COMPACTION
Specifies what compaction mode to use for PDF417 (type
Compaction or String value of one of its
enum values). |
PDF417_DIMENSIONS
Specifies the minimum and maximum number of rows and columns for PDF417 (type
Dimensions). |
QR_COMPACT
|
QR_MASK_PATTERN
Specifies the QR code mask pattern to be used.
|
QR_VERSION
Specifies the exact version of QR code to be encoded.
|
| Modifier and Type | Method and Description |
|---|---|
static EncodeHintType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncodeHintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncodeHintType ERROR_CORRECTION
ErrorCorrectionLevel.
For Aztec it is of type Integer, representing the minimal percentage of error correction words.
For PDF417 it is of type Integer, valid values being 0 to 8.
In all cases, it can also be a String representation of the desired value as well.
Note: an Aztec symbol should have a minimum of 25% EC words.public static final EncodeHintType CHARACTER_SET
String)public static final EncodeHintType DATA_MATRIX_SHAPE
SymbolShapeHint)public static final EncodeHintType DATA_MATRIX_COMPACT
Boolean, or "true" or "false"
String value).
The compact encoding mode also supports the encoding of characters that are not in the ISO-8859-1
character set via ECIs.
Please note that in that case, the most compact character encoding is chosen for characters in
the input that are not in the ISO-8859-1 character set. Based on experience, some scanners do not
support encodings like cp-1256 (Arabic). In such cases the encoding can be forced to UTF-8 by
means of the CHARACTER_SET encoding hint.
Compact encoding also provides GS1-FNC1 support when GS1_FORMAT is selected. In this case
group-separator character (ASCII 29 decimal) can be used to encode the positions of FNC1 codewords
for the purpose of delimiting AIs.
This option and FORCE_C40 are mutually exclusive.@Deprecated public static final EncodeHintType MIN_SIZE
DataMatrixWriter.encode(String, BarcodeFormat, int, int)Dimension). Only applicable to Data Matrix now.@Deprecated public static final EncodeHintType MAX_SIZE
Dimension). Only applicable to Data Matrix now.public static final EncodeHintType MARGIN
public static final EncodeHintType PDF417_COMPACT
public static final EncodeHintType PDF417_COMPACTION
Compaction or String value of one of its
enum values).public static final EncodeHintType PDF417_DIMENSIONS
Dimensions).public static final EncodeHintType PDF417_AUTO_ECI
Boolean, or "true" or "false"
String value).
Please note that in that case, the most compact character encoding is chosen for characters in
the input that are not in the ISO-8859-1 character set. Based on experience, some scanners do not
support encodings like cp-1256 (Arabic). In such cases the encoding can be forced to UTF-8 by
means of the CHARACTER_SET encoding hint.public static final EncodeHintType AZTEC_LAYERS
Integer, or String representation of the integer value).public static final EncodeHintType QR_VERSION
public static final EncodeHintType QR_MASK_PATTERN
public static final EncodeHintType QR_COMPACT
Boolean, or "true" or "false"
String value).
Please note that when compaction is performed, the most compact character encoding is chosen
for characters in the input that are not in the ISO-8859-1 character set. Based on experience,
some scanners do not support encodings like cp-1256 (Arabic). In such cases the encoding can
be forced to UTF-8 by means of the CHARACTER_SET encoding hint.public static final EncodeHintType GS1_FORMAT
public static final EncodeHintType FORCE_CODE_SET
String).
Valid values are "A", "B", "C".
This option and CODE128_COMPACT are mutually exclusive.public static final EncodeHintType FORCE_C40
Boolean, or "true" or "false") String value). This
option and DATA_MATRIX_COMPACT are mutually exclusive.public static final EncodeHintType CODE128_COMPACT
Boolean, or "true" or "false"
String value).
This can yield slightly smaller bar codes. This option and FORCE_CODE_SET are mutually
exclusive.public static EncodeHintType[] values()
for (EncodeHintType c : EncodeHintType.values()) System.out.println(c);
public static EncodeHintType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2007–2022. All rights reserved.