Package com.google.zxing
Enum EncodeHintType
- java.lang.Object
- 
- java.lang.Enum<EncodeHintType>
- 
- com.google.zxing.EncodeHintType
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<EncodeHintType>
 
 public enum EncodeHintType extends Enum<EncodeHintType> These are a set of hints that you may pass to Writers to specify their behavior.- Author:
- dswitkin@google.com (Daniel Switkin)
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description AZTEC_LAYERSSpecifies the required number of layers for an Aztec code.CHARACTER_SETSpecifies what character encoding to use where applicable (typeString)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_FORMATMARGINSpecifies margin, in pixels, to use when generating the barcode.MAX_SIZEDeprecated.without replacementMIN_SIZEDeprecated.use width/height params in com.google.zxing.datamatrix.DataMatrixWriter#encode(String, BarcodeFormat, int, int)PDF417_COMPACTPDF417_COMPACTIONSpecifies what compaction mode to use for PDF417 (type com.google.zxing.pdf417.encoder.Compaction Compaction orStringvalue 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.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static EncodeHintTypevalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
ERROR_CORRECTIONpublic static final EncodeHintType ERROR_CORRECTION Specifies what degree of error correction to use, for example in QR Codes. Type depends on the encoder. For example for QR codes it's typeErrorCorrectionLevel. For Aztec it is of typeInteger, representing the minimal percentage of error correction words. For PDF417 it is of typeInteger, valid values being 0 to 8. In all cases, it can also be aStringrepresentation of the desired value as well. Note: an Aztec symbol should have a minimum of 25% EC words.
 - 
CHARACTER_SETpublic static final EncodeHintType CHARACTER_SET Specifies what character encoding to use where applicable (typeString)
 - 
DATA_MATRIX_SHAPEpublic static final EncodeHintType DATA_MATRIX_SHAPE Specifies the matrix shape for Data Matrix (type com.google.zxing.datamatrix.encoder.SymbolShapeHint)
 - 
MIN_SIZE@Deprecated public static final EncodeHintType MIN_SIZE Deprecated.use width/height params in com.google.zxing.datamatrix.DataMatrixWriter#encode(String, BarcodeFormat, int, int)Specifies a minimum barcode size (type Dimension). Only applicable to Data Matrix now.
 - 
MAX_SIZE@Deprecated public static final EncodeHintType MAX_SIZE Deprecated.without replacementSpecifies a maximum barcode size (type Dimension). Only applicable to Data Matrix now.
 - 
MARGINpublic static final EncodeHintType MARGIN 
 - 
PDF417_COMPACTpublic static final EncodeHintType PDF417_COMPACT 
 - 
PDF417_COMPACTIONpublic static final EncodeHintType PDF417_COMPACTION Specifies what compaction mode to use for PDF417 (type com.google.zxing.pdf417.encoder.Compaction Compaction orStringvalue of one of its enum values).
 - 
PDF417_DIMENSIONSpublic static final EncodeHintType PDF417_DIMENSIONS Specifies the minimum and maximum number of rows and columns for PDF417 (type com.google.zxing.pdf417.encoder.Dimensions Dimensions).
 - 
AZTEC_LAYERSpublic static final EncodeHintType AZTEC_LAYERS Specifies the required number of layers for an Aztec code. A negative number (-1, -2, -3, -4) specifies a compact Aztec code. 0 indicates to use the minimum number of layers (the default). A positive number (1, 2, .. 32) specifies a normal (non-compact) Aztec code. (TypeInteger, orStringrepresentation of the integer value).
 - 
QR_VERSIONpublic static final EncodeHintType QR_VERSION 
 - 
QR_MASK_PATTERNpublic static final EncodeHintType QR_MASK_PATTERN 
 - 
GS1_FORMATpublic static final EncodeHintType GS1_FORMAT 
 
- 
 - 
Method Detail- 
valuespublic static EncodeHintType[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EncodeHintType c : EncodeHintType.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static EncodeHintType valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
 
-