|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DecodeHintType>
com.google.zxing.DecodeHintType
public enum DecodeHintType
Encapsulates a type of hint that a caller may pass to a barcode reader to help it more quickly or accurately decode it. It is up to implementations to decide what, if anything, to do with the information that is supplied.
Reader.decode(BinaryBitmap,java.util.Map)
Enum Constant Summary | |
---|---|
ALLOWED_LENGTHS
Allowed lengths of encoded data -- reject anything else. |
|
ASSUME_CODE_39_CHECK_DIGIT
Assume Code 39 codes employ a check digit. |
|
CHARACTER_SET
Specifies what character encoding to use when decoding, where applicable (type String) |
|
NEED_RESULT_POINT_CALLBACK
The caller needs to be notified via callback when a possible ResultPoint
is found. |
|
OTHER
Unspecified, application-specific hint. |
|
POSSIBLE_FORMATS
Image is known to be of one of a few possible formats. |
|
PURE_BARCODE
Image is a pure monochrome image of a barcode. |
|
TRY_HARDER
Spend more time to try to find a barcode; optimize for accuracy, not speed. |
Method Summary | |
---|---|
static DecodeHintType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DecodeHintType[] |
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 DecodeHintType OTHER
Object
.
public static final DecodeHintType PURE_BARCODE
Boolean.TRUE
.
public static final DecodeHintType POSSIBLE_FORMATS
List
of BarcodeFormat
s.
public static final DecodeHintType TRY_HARDER
Boolean.TRUE
.
public static final DecodeHintType CHARACTER_SET
public static final DecodeHintType ALLOWED_LENGTHS
public static final DecodeHintType ASSUME_CODE_39_CHECK_DIGIT
Boolean
.
public static final DecodeHintType NEED_RESULT_POINT_CALLBACK
ResultPoint
is found. Maps to a ResultPointCallback
.
Method Detail |
---|
public static DecodeHintType[] values()
for (DecodeHintType c : DecodeHintType.values()) System.out.println(c);
public static DecodeHintType 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 null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |