public class DecodeType
extends java.lang.Object
Specify the type of barcode to read.
This sample shows how to detect Code39 and Code128 barcodes.BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.CODE_39_STANDARD, DecodeType.CODE_128); for(BarCodeResult result : reader.readBarCodes()) { System.out.println("BarCode Type: " + result.getCodeTypeName()); System.out.println("BarCode CodeText: " + result.getCodeText()); }
Modifier and Type | Field and Description |
---|---|
static MultyDecodeType |
ALL_SUPPORTED_TYPES
Specifies that data will be checked with all available symbologies
|
static SingleDecodeType |
AUSTRALIA_POST
Specifies that the data should be decoded with
<b>Australia Post</b> barcode specification |
static SingleDecodeType |
AUSTRALIAN_POSTE_PARCEL
Specifies that the data should be decoded with
<b>Australian Post Domestic eParcel Barcode</b> barcode specification |
static SingleDecodeType |
AZTEC
Specifies that the data should be decoded with
<b>Aztec</b> barcode specification |
static SingleDecodeType |
CODABAR
Specifies that the data should be decoded with
<b>CODABAR</b> barcode specification |
static SingleDecodeType |
CODABLOCK_F
Specifies that the data should be decoded with
<b>CodablockF</b> barcode specification |
static SingleDecodeType |
CODE_11
Specifies that the data should be decoded with
<b>CODE 11</b> barcode specification |
static SingleDecodeType |
CODE_128
Specifies that the data should be decoded with
<b>CODE 128</b> barcode specification |
static SingleDecodeType |
CODE_16_K
Specifies that the data should be decoded with
<b>SCode16K</b> barcode specification |
static SingleDecodeType |
CODE_32
Specifies that the data should be decoded with
<b>Code32</b> blank specification |
static SingleDecodeType |
CODE_39_EXTENDED
Specifies that the data should be decoded with
<b>Extended CODE 39</b> barcode specification |
static SingleDecodeType |
CODE_39_STANDARD
Specifies that the data should be decoded with
<b>Standard CODE 39</b> barcode specification |
static SingleDecodeType |
CODE_93_EXTENDED
Specifies that the data should be decoded with
<b>Extended CODE 93</b> barcode specification |
static SingleDecodeType |
CODE_93_STANDARD
Specifies that the data should be decoded with
<b>Standard CODE 93</b> barcode specification |
static SingleDecodeType |
COMPACT_PDF_417
Specifies that the data should be decoded with
<b>CompactPdf417</b> (Pdf417Truncated) barcode specification |
static SingleDecodeType |
DATA_LOGIC_2_OF_5
Specifies that the data should be decoded with
<b>DataLogic 2 of 5</b> blank specification |
static SingleDecodeType |
DATA_MATRIX
Specifies that the data should be decoded with
<b>DataMatrix</b> barcode symbology |
static SingleDecodeType |
DATABAR_EXPANDED
Specifies that the data should be decoded with
<b>GS1 DATABAR expanded</b> barcode specification |
static SingleDecodeType |
DATABAR_EXPANDED_STACKED
Specifies that the data should be decoded with
<b>GS1 DATABAR expanded stacked</b> barcode specification |
static SingleDecodeType |
DATABAR_LIMITED
Specifies that the data should be decoded with
<b>GS1 DATABAR limited</b> barcode specification |
static SingleDecodeType |
DATABAR_OMNI_DIRECTIONAL
Specifies that the data should be decoded with
<b>GS1 DATABAR omni-directional</b> barcode specification |
static SingleDecodeType |
DATABAR_STACKED
Specifies that the data should be decoded with
<b>GS1 DATABAR stacked</b> barcode specification |
static SingleDecodeType |
DATABAR_STACKED_OMNI_DIRECTIONAL
Specifies that the data should be decoded with
<b>GS1 DATABAR stacked omni-directional</b> barcode specification |
static SingleDecodeType |
DATABAR_TRUNCATED
Specifies that the data should be decoded with
<b>GS1 DATABAR truncated</b> barcode specification |
static SingleDecodeType |
DEUTSCHE_POST_IDENTCODE
Specifies that the data should be decoded with
<b>DeutschePost Ident code</b> barcode specification |
static SingleDecodeType |
DEUTSCHE_POST_LEITCODE
Specifies that the data should be decoded with
<b>DeutschePost Leit code</b> barcode specification |
static SingleDecodeType |
DOT_CODE
Specifies that the data should be decoded with
<b>DotCode</b> blank specification |
static SingleDecodeType |
DUTCH_KIX
Specifies that the data should be decoded with
<b>DotCode</b> blank specification |
static SingleDecodeType |
EAN_13
Specifies that the data should be decoded with
<b>EAN-13</b> barcode specification |
static SingleDecodeType |
EAN_14
Specifies that the data should be decoded with
<b>EAN14</b> barcode specification |
static SingleDecodeType |
EAN_8
Specifies that the data should be decoded with
<b>EAN-8</b> barcode specification |
static SingleDecodeType |
GS_1_CODE_128
Specifies that the data should be decoded with
<b>GS1 CODE 128</b> barcode specification |
static SingleDecodeType |
GS_1_DATA_MATRIX
Specifies that the data should be decoded with
<b>GS1DataMatrix</b> barcode symbology |
static SingleDecodeType |
GS_1_QR
Specifies that the data should be decoded with
<b>GS1 QR</b> barcode specification |
static SingleDecodeType |
IATA_2_OF_5
Specifies that the data should be decoded with
<b>IATA 2 of 5</b> barcode specification. |
static SingleDecodeType |
INTERLEAVED_2_OF_5
Specifies that the data should be decoded with
<b>INTERLEAVED 2 of 5</b> barcode specification |
static SingleDecodeType |
ISBN
Specifies that the data should be decoded with
<b>ISBN</b> barcode specification |
static SingleDecodeType |
ISMN
Specifies that the data should be decoded with
<b>ISMN</b> barcode specification |
static SingleDecodeType |
ISSN
Specifies that the data should be decoded with
<b>ISSN</b> barcode specification |
static SingleDecodeType |
ITALIAN_POST_25
Specifies that the data should be decoded with
<b>Italian Post 25</b> barcode specification |
static SingleDecodeType |
ITF_14
Specifies that the data should be decoded with
<b>ITF14</b> barcode specification |
static SingleDecodeType |
ITF_6
Specifies that the data should be decoded with
<b>ITF6</b> barcode specification |
static SingleDecodeType |
MACRO_PDF_417
Specifies that the data should be decoded with
<b>MacroPdf417</b> barcode specification |
static SingleDecodeType |
MATRIX_2_OF_5
Specifies that the data should be decoded with
<b>Matrix 2 of 5</b> barcode specification |
static SingleDecodeType |
MAXI_CODE
Specifies that the data should be decoded with
<b>MaxiCode</b> barcode specification |
static SingleDecodeType |
MICR_E_13_B
Specifies that the data should be decoded with
<b>MICR E-13B</b> blank specification |
static SingleDecodeType |
MICRO_PDF_417
Specifies that the data should be decoded with
<b>MicroPdf417</b> barcode specification |
static SingleDecodeType |
MICRO_QR
Specifies that the data should be decoded with
<b>MicroQR Code</b> barcode specification |
static MultyDecodeType |
MOST_COMMON_TYPES
Specifies that data will be checked with most commonly used symbologies
|
static SingleDecodeType |
MSI
Specifies that the data should be decoded with
<b>MSI Plessey</b> barcode specification |
static SingleDecodeType |
NONE
Unspecified decode type.
|
static SingleDecodeType |
ONE_CODE
Specifies that the data should be decoded with USPS
<b>OneCode</b> barcode specification |
static SingleDecodeType |
OPC
Specifies that the data should be decoded with
<b>OPC</b> barcode specification |
static SingleDecodeType |
PATCH_CODE
Specifies that the data should be decoded with
<b>Patch code</b> barcode specification. |
static SingleDecodeType |
PDF_417
Specifies that the data should be decoded with
<b>Pdf417</b> barcode symbology |
static SingleDecodeType |
PHARMACODE
Specifies that the data should be decoded with
<b>Pharmacode</b> barcode. |
static SingleDecodeType |
PLANET
Specifies that the data should be decoded with
<b>Planet</b> barcode specification |
static MultyDecodeType |
POSTAL_TYPES
Specifies that data will be checked with all of 1.5D POSTAL barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX
|
static SingleDecodeType |
POSTNET
Specifies that the data should be decoded with
<b>Postnet</b> barcode specification |
static SingleDecodeType |
PZN
Specifies that the data should be decoded with
<b>PZN</b> barcode specification. |
static SingleDecodeType |
QR
Specifies that the data should be decoded with
<b>QR Code</b> barcode specification |
static SingleDecodeType |
RM_4_SCC
Specifies that the data should be decoded with
<b>RM4SCC</b> barcode specification. |
static SingleDecodeType |
SCC_14
Specifies that the data should be decoded with
<b>SCC14</b> barcode specification |
static SingleDecodeType |
SSCC_18
Specifies that the data should be decoded with
<b>SSCC18</b> barcode specification |
static SingleDecodeType |
STANDARD_2_OF_5
Specifies that the data should be decoded with
<b>Standard 2 of 5</b> barcode specification |
static SingleDecodeType |
SUPPLEMENT
Specifies that the data should be decoded with
<b>Supplement(EAN2, EAN5)</b> barcode specification |
static SingleDecodeType |
SWISS_POST_PARCEL
Specifies that the data should be decoded with
<b>Swiss Post Parcel Barcode</b> barcode specification |
static MultyDecodeType |
TYPES_1D
Specifies that data will be checked with all of 1D barcode symbologies
|
static SingleDecodeType |
UPCA
Specifies that the data should be decoded with
<b>UPC-A</b> barcode specification |
static SingleDecodeType |
UPCE
Specifies that the data should be decoded with
<b>UPC-E</b> barcode specification |
static SingleDecodeType |
VIN
Specifies that the data should be decoded with
<b>VIN</b> (Vehicle Identification Number) barcode specification |
Constructor and Description |
---|
DecodeType() |
Modifier and Type | Method and Description |
---|---|
static SingleDecodeType[] |
getAllSupportedTypesArray()
Gets an array that represents AllSupportedTypes
|
static java.lang.String[] |
getNames()
Retrieves an array of the names of the decode types.
|
static SingleDecodeType |
parse(java.lang.String parsingType)
Converts the string representation of a SingleDecodeType to its instance.
|
static BaseDecodeType |
scanSets(BaseDecodeType... barcodeTypes)
Specify scan sets by barcodeTypes
|
static MultyDecodeType |
tryParseMultyDecodeType(java.lang.String parsingType)
Converts the string representation of a MultyDecodeType to its instance.
|
static SingleDecodeType |
tryParseSingleDecodeType(java.lang.String parsingType)
Converts the string representation of a SingleDecodeType to its instance.
|
public static final SingleDecodeType NONE
Unspecified decode type.
public static final SingleDecodeType CODABAR
Specifies that the data should be decoded with <b>CODABAR</b>
barcode specification
public static final SingleDecodeType CODE_11
Specifies that the data should be decoded with <b>CODE 11</b>
barcode specification
public static final SingleDecodeType CODE_39_STANDARD
Specifies that the data should be decoded with <b>Standard CODE 39</b>
barcode specification
public static final SingleDecodeType CODE_39_EXTENDED
Specifies that the data should be decoded with <b>Extended CODE 39</b>
barcode specification
public static final SingleDecodeType CODE_93_STANDARD
Specifies that the data should be decoded with <b>Standard CODE 93</b>
barcode specification
public static final SingleDecodeType CODE_93_EXTENDED
Specifies that the data should be decoded with <b>Extended CODE 93</b>
barcode specification
public static final SingleDecodeType CODE_128
Specifies that the data should be decoded with <b>CODE 128</b>
barcode specification
public static final SingleDecodeType GS_1_CODE_128
Specifies that the data should be decoded with <b>GS1 CODE 128</b>
barcode specification
public static final SingleDecodeType EAN_8
Specifies that the data should be decoded with <b>EAN-8</b>
barcode specification
public static final SingleDecodeType EAN_13
Specifies that the data should be decoded with <b>EAN-13</b>
barcode specification
public static final SingleDecodeType EAN_14
Specifies that the data should be decoded with <b>EAN14</b>
barcode specification
public static final SingleDecodeType SCC_14
Specifies that the data should be decoded with <b>SCC14</b>
barcode specification
public static final SingleDecodeType SSCC_18
Specifies that the data should be decoded with <b>SSCC18</b>
barcode specification
public static final SingleDecodeType UPCA
Specifies that the data should be decoded with <b>UPC-A</b>
barcode specification
public static final SingleDecodeType UPCE
Specifies that the data should be decoded with <b>UPC-E</b>
barcode specification
public static final SingleDecodeType ISBN
Specifies that the data should be decoded with <b>ISBN</b>
barcode specification
public static final SingleDecodeType STANDARD_2_OF_5
Specifies that the data should be decoded with <b>Standard 2 of 5</b>
barcode specification
public static final SingleDecodeType INTERLEAVED_2_OF_5
Specifies that the data should be decoded with <b>INTERLEAVED 2 of 5</b>
barcode specification
public static final SingleDecodeType MATRIX_2_OF_5
Specifies that the data should be decoded with <b>Matrix 2 of 5</b>
barcode specification
public static final SingleDecodeType ITALIAN_POST_25
Specifies that the data should be decoded with <b>Italian Post 25</b>
barcode specification
public static final SingleDecodeType IATA_2_OF_5
Specifies that the data should be decoded with <b>IATA 2 of 5</b>
barcode specification. IATA (International Air Transport Association) uses this barcode for the management of air cargo.
public static final SingleDecodeType ITF_14
Specifies that the data should be decoded with <b>ITF14</b>
barcode specification
public static final SingleDecodeType ITF_6
Specifies that the data should be decoded with <b>ITF6</b>
barcode specification
public static final SingleDecodeType MSI
Specifies that the data should be decoded with <b>MSI Plessey</b>
barcode specification
public static final SingleDecodeType VIN
Specifies that the data should be decoded with <b>VIN</b>
(Vehicle Identification Number) barcode specification
public static final SingleDecodeType DEUTSCHE_POST_IDENTCODE
Specifies that the data should be decoded with <b>DeutschePost Ident code</b>
barcode specification
public static final SingleDecodeType DEUTSCHE_POST_LEITCODE
Specifies that the data should be decoded with <b>DeutschePost Leit code</b>
barcode specification
public static final SingleDecodeType OPC
Specifies that the data should be decoded with <b>OPC</b>
barcode specification
public static final SingleDecodeType PZN
Specifies that the data should be decoded with <b>PZN</b>
barcode specification. This symbology is also known as Pharma Zentral Nummer
public static final SingleDecodeType PHARMACODE
Specifies that the data should be decoded with <b>Pharmacode</b>
barcode. This symbology is also known as Pharmaceutical BINARY Code
public static final SingleDecodeType DATA_MATRIX
Specifies that the data should be decoded with <b>DataMatrix</b>
barcode symbology
public static final SingleDecodeType GS_1_DATA_MATRIX
Specifies that the data should be decoded with <b>GS1DataMatrix</b>
barcode symbology
public static final SingleDecodeType QR
Specifies that the data should be decoded with <b>QR Code</b>
barcode specification
public static final SingleDecodeType AZTEC
Specifies that the data should be decoded with <b>Aztec</b>
barcode specification
public static final SingleDecodeType PDF_417
Specifies that the data should be decoded with <b>Pdf417</b>
barcode symbology
public static final SingleDecodeType MACRO_PDF_417
Specifies that the data should be decoded with <b>MacroPdf417</b>
barcode specification
public static final SingleDecodeType MICRO_PDF_417
Specifies that the data should be decoded with <b>MicroPdf417</b>
barcode specification
public static final SingleDecodeType CODABLOCK_F
Specifies that the data should be decoded with <b>CodablockF</b>
barcode specification
public static final SingleDecodeType AUSTRALIA_POST
Specifies that the data should be decoded with <b>Australia Post</b>
barcode specification
public static final SingleDecodeType POSTNET
Specifies that the data should be decoded with <b>Postnet</b>
barcode specification
public static final SingleDecodeType PLANET
Specifies that the data should be decoded with <b>Planet</b>
barcode specification
public static final SingleDecodeType ONE_CODE
Specifies that the data should be decoded with USPS <b>OneCode</b>
barcode specification
public static final SingleDecodeType RM_4_SCC
Specifies that the data should be decoded with <b>RM4SCC</b>
barcode specification. RM4SCC (Royal Mail 4-state Customer Code) is used for automated mail sort process in UK.
public static final SingleDecodeType DATABAR_OMNI_DIRECTIONAL
Specifies that the data should be decoded with <b>GS1 DATABAR omni-directional</b>
barcode specification
public static final SingleDecodeType DATABAR_TRUNCATED
Specifies that the data should be decoded with <b>GS1 DATABAR truncated</b>
barcode specification
public static final SingleDecodeType DATABAR_LIMITED
Specifies that the data should be decoded with <b>GS1 DATABAR limited</b>
barcode specification
public static final SingleDecodeType DATABAR_EXPANDED
Specifies that the data should be decoded with <b>GS1 DATABAR expanded</b>
barcode specification
public static final SingleDecodeType DATABAR_STACKED_OMNI_DIRECTIONAL
Specifies that the data should be decoded with <b>GS1 DATABAR stacked omni-directional</b>
barcode specification
public static final SingleDecodeType DATABAR_STACKED
Specifies that the data should be decoded with <b>GS1 DATABAR stacked</b>
barcode specification
public static final SingleDecodeType DATABAR_EXPANDED_STACKED
Specifies that the data should be decoded with <b>GS1 DATABAR expanded stacked</b>
barcode specification
public static final SingleDecodeType PATCH_CODE
Specifies that the data should be decoded with <b>Patch code</b>
barcode specification. Barcode symbology is used for automated scanning
public static final SingleDecodeType ISSN
Specifies that the data should be decoded with <b>ISSN</b>
barcode specification
public static final SingleDecodeType ISMN
Specifies that the data should be decoded with <b>ISMN</b>
barcode specification
public static final SingleDecodeType SUPPLEMENT
Specifies that the data should be decoded with <b>Supplement(EAN2, EAN5)</b>
barcode specification
public static final SingleDecodeType AUSTRALIAN_POSTE_PARCEL
Specifies that the data should be decoded with <b>Australian Post Domestic eParcel Barcode</b>
barcode specification
public static final SingleDecodeType SWISS_POST_PARCEL
Specifies that the data should be decoded with <b>Swiss Post Parcel Barcode</b>
barcode specification
public static final SingleDecodeType CODE_16_K
Specifies that the data should be decoded with <b>SCode16K</b>
barcode specification
public static final SingleDecodeType MICRO_QR
Specifies that the data should be decoded with <b>MicroQR Code</b>
barcode specification
public static final SingleDecodeType COMPACT_PDF_417
Specifies that the data should be decoded with <b>CompactPdf417</b>
(Pdf417Truncated) barcode specification
public static final SingleDecodeType GS_1_QR
Specifies that the data should be decoded with <b>GS1 QR</b>
barcode specification
public static final SingleDecodeType MAXI_CODE
Specifies that the data should be decoded with <b>MaxiCode</b>
barcode specification
public static final SingleDecodeType MICR_E_13_B
Specifies that the data should be decoded with <b>MICR E-13B</b>
blank specification
public static final SingleDecodeType CODE_32
Specifies that the data should be decoded with <b>Code32</b>
blank specification
public static final SingleDecodeType DATA_LOGIC_2_OF_5
Specifies that the data should be decoded with <b>DataLogic 2 of 5</b>
blank specification
public static final SingleDecodeType DOT_CODE
Specifies that the data should be decoded with <b>DotCode</b>
blank specification
public static final SingleDecodeType DUTCH_KIX
Specifies that the data should be decoded with <b>DotCode</b>
blank specification
public static final MultyDecodeType ALL_SUPPORTED_TYPES
Specifies that data will be checked with all available symbologies
public static final MultyDecodeType TYPES_1D
public static final MultyDecodeType POSTAL_TYPES
public static final MultyDecodeType MOST_COMMON_TYPES
public static java.lang.String[] getNames()
Retrieves an array of the names of the decode types.
public static SingleDecodeType tryParseSingleDecodeType(java.lang.String parsingType)
Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
parsingType
- A string in the format as "Index:-1; Name:NONE" to convert.otherwise it returns indefinite type. or SingleDecodeType (-1, "NONE").
public static MultyDecodeType tryParseMultyDecodeType(java.lang.String parsingType)
Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
parsingType
- A string in the format as either "AllSupportedTypes" or "EAN8,EAN13,CodaBar" to convert.otherwise it returns indefinite type. or MultyDecodeType ("NONE").
public static SingleDecodeType[] getAllSupportedTypesArray()
Gets an array that represents AllSupportedTypes
public static BaseDecodeType scanSets(BaseDecodeType... barcodeTypes)
Specify scan sets by barcodeTypes
barcodeTypes
- Array of single and multy decode typespublic static SingleDecodeType parse(java.lang.String parsingType)
Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
parsingType
- A string containing a SingleDecodeType representation to convert.otherwise it returns indefinite type. or SingleDecodeType (-1, "NONE").