public enum EncodeHintType extends Enum<EncodeHintType>
| Enum Constant and Description |
|---|
AZTEC_LAYERSSpecifies the required number of layers for an Aztec code. |
CHARACTER_SETSpecifies what character encoding to use where applicable (type String) |
DATA_MATRIX_SHAPESpecifies the matrix shape for Data Matrix (type com.google.zxing.datamatrix.encoder.SymbolShapeHint) |
ERROR_CORRECTIONSpecifies what degree of error correction to use, for example in QR Codes. |
GS1_FORMAT |
MARGINSpecifies margin, in pixels, to use when generating the barcode. |
PDF417_COMPACT |
PDF417_COMPACTIONSpecifies what compaction mode to use for PDF417 (type
com.google.zxing.pdf417.encoder.Compaction Compaction or String value of one of its
enum values). |
PDF417_DIMENSIONSSpecifies the minimum and maximum number of rows and columns for PDF417 (type
com.google.zxing.pdf417.encoder.Dimensions Dimensions). |
QR_MASK_PATTERNSpecifies the QR code mask pattern to be used. |
QR_VERSIONSpecifies 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 AZTEC_LAYERS
Integer, or String representation of the integer value).public static final EncodeHintType CHARACTER_SET
String)public static final EncodeHintType DATA_MATRIX_SHAPE
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 GS1_FORMAT
public static final EncodeHintType MARGIN
public static final EncodeHintType PDF417_COMPACT
public static final EncodeHintType PDF417_COMPACTION
String value of one of its
enum values).public static final EncodeHintType PDF417_DIMENSIONS
public static final EncodeHintType QR_MASK_PATTERN
public static final EncodeHintType QR_VERSION
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 nullpublic static EncodeHintType[] values()
for (EncodeHintType c : EncodeHintType.values()) System.out.println(c);