Package com.pdftools.ocr
Enum BarcodeHandling
- java.lang.Object
-
- java.lang.Enum<BarcodeHandling>
-
- com.pdftools.ocr.BarcodeHandling
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BarcodeHandling>
public enum BarcodeHandling extends java.lang.Enum<BarcodeHandling>
The mode for barcode processing
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMBEDEmbed recognized barcodes into the document's XMP metadata.EXTRACTWrite recognized barcodes to the stream specified byBarcodeOptions.setXmlOutputStream(com.pdftools.sys.Stream).NONEDo not process barcodes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BarcodeHandlingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BarcodeHandling[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final BarcodeHandling NONE
Do not process barcodes.
-
EMBED
public static final BarcodeHandling EMBED
Embed recognized barcodes into the document's XMP metadata.
-
EXTRACT
public static final BarcodeHandling EXTRACT
Write recognized barcodes to the stream specified byBarcodeOptions.setXmlOutputStream(com.pdftools.sys.Stream).
-
-
Method Detail
-
values
public static BarcodeHandling[] 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 (BarcodeHandling c : BarcodeHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BarcodeHandling valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-