public class DecodeType extends Object
Specify the type of barcode to read.
Detect an code39 and Code128 barcodeBarCodeReader reader; reader = new BarCodeReader("test.jpg", DecodeType.CODE_39_STANDARD, DecodeType.CODE_128); while (reader.read()) { System.out.println("BarCode Type: " + reader.getCodeType()); System.out.println("BarCode CodeText: " + reader.getCodeText()); } reader.close();
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
Represents Australia Post Customer BarCode
|
static SingleDecodeType |
AUSTRALIAN_POSTE_PARCEL
Specifies that the data should be encoded with
<b>Australian Post Domestic eParcel Barcode</b> barcode specification |
static SingleDecodeType |
AZTEC
Specifies that the data should be encoded with
<b>Aztec</b> barcode specification |
static SingleDecodeType |
CODABAR
Specifies that the data should be encoded with
<b>CODABAR</b> barcode specification |
static SingleDecodeType |
CODABLOCK_F
Specifies that the data should be encoded with
<b>CodablockF</b> barcode specification |
static SingleDecodeType |
CODE_11
Specifies that the data should be encoded with
<b>CODE 11</b> barcode specification |
static SingleDecodeType |
CODE_128
Specifies that the data should be encoded with
<b>CODE 128</b> barcode specification |
static SingleDecodeType |
CODE_16_K
Specifies that the data should be encoded with
<b>Swiss Post Parcel Barcode</b> barcode specification. |
static SingleDecodeType |
CODE_32
Specifies that the data should be encoded with
<b>Code32</b> blank specification |
static SingleDecodeType |
CODE_39_EXTENDED
Specifies that the data should be encoded with
<b>Extended CODE 39</b> barcode specification |
static SingleDecodeType |
CODE_39_STANDARD
Specifies that the data should be encoded with
<b>Standard CODE 39</b> barcode specification |
static SingleDecodeType |
CODE_93_EXTENDED
Specifies that the data should be encoded with
<b>Extended CODE 93</b> barcode specification |
static SingleDecodeType |
CODE_93_STANDARD
Specifies that the data should be encoded with
<b>Standard CODE 93</b> barcode specification |
static SingleDecodeType |
COMPACT_PDF_417
Specifies that the data should be encoded with
<b>CompactPdf417</b> (Pdf417Truncated, "") barcode specification |
static SingleDecodeType |
DATA_LOGIC_2_OF_5
Specifies that the data should be encoded with
<b>DataLogic 2 of 5</b> blank specification |
static SingleDecodeType |
DATA_MATRIX
2D barcode symbology DataMatrix
|
static SingleDecodeType |
DATABAR_EXPANDED
Represents GS1 Databar expanded barcode, ""); supports recognition only.
|
static SingleDecodeType |
DATABAR_EXPANDED_STACKED
Represents GS1 Databar expanded stacked barcode
|
static SingleDecodeType |
DATABAR_LIMITED
Represents GS1 Databar limited barcode, ""); supports recognition only.
|
static SingleDecodeType |
DATABAR_OMNI_DIRECTIONAL
Represents GS1 Databar omni-directional barcode
|
static SingleDecodeType |
DATABAR_STACKED
Represents GS1 Databar stacked barcode
|
static SingleDecodeType |
DATABAR_STACKED_OMNI_DIRECTIONAL
Represents GS1 Databar stacked omni-directional barcode
|
static SingleDecodeType |
DATABAR_TRUNCATED
Represents GS1 Databar truncated barcode
|
static SingleDecodeType |
DEUTSCHE_POST_IDENTCODE
Specifies that the data should be encoded with
<b>DeutschePost Ident code</b> barcode specification |
static SingleDecodeType |
DEUTSCHE_POST_LEITCODE
Specifies that the data should be encoded with
<b>DeutschePost Leit code</b> barcode specification |
static SingleDecodeType |
DOT_CODE
Specifies that the data should be encoded with DotCode blank specification
|
static SingleDecodeType |
DUTCH_KIX
Specifies that the data should be encoded with
<b>DotCode</b> blank specification |
static SingleDecodeType |
EAN_13
Specifies that the data should be encoded with
<b>EAN-13</b> barcode specification |
static SingleDecodeType |
EAN_14
Specifies that the data should be encoded with
<b>EAN14</b> barcode specification |
static SingleDecodeType |
EAN_8
Specifies that the data should be encoded with
<b>EAN-8</b> barcode specification |
static SingleDecodeType |
GS_1_CODE_128
Specifies that the data should be encoded with
<b>GS1 CODE 128</b> barcode specification |
static SingleDecodeType |
GS_1_DATA_MATRIX
2D barcode symbology GS1DataMatrix
|
static SingleDecodeType |
GS_1_QR
Specifies that the data should be encoded with
<b>GS1 QR</b> barcode specification |
static SingleDecodeType |
IATA_2_OF_5
Represents IATA 2 of 5 barcode.IATA (International Air Transport Association, "") uses this barcode for the management of air cargo.
|
static SingleDecodeType |
INTERLEAVED_2_OF_5
Specifies that the data should be encoded with
<b>INTERLEAVED 2 of 5</b> barcode specification |
static SingleDecodeType |
ISBN
Specifies that the data should be encoded with
<b>ISBN</b> barcode specification |
static SingleDecodeType |
ISMN
Specifies that the data should be encoded with
<b>ISMN</b> barcode specification |
static SingleDecodeType |
ISSN
Specifies that the data should be encoded with
<b>ISSN</b> barcode specification |
static SingleDecodeType |
ITALIAN_POST_25
Represents Italian Post 25 barcode.
|
static SingleDecodeType |
ITF_14
Specifies that the data should be encoded with
<b>ITF14</b> barcode specification |
static SingleDecodeType |
ITF_6
Specifies that the data should be encoded with
<b>ITF6</b> barcode specification |
static SingleDecodeType |
MACRO_PDF_417
Specifies that the data should be encoded with
<b>MacroPdf417</b> barcode specification |
static SingleDecodeType |
MATRIX_2_OF_5
Specifies that the data should be encoded with
<b>Matrix 2 of 5</b> barcode specification |
static SingleDecodeType |
MAXI_CODE
Specifies that the data should be encoded with
<b>MaxiCode</b> barcode specification |
static SingleDecodeType |
MICR_E_13_B
Specifies that the data should be encoded with
<b>MICR E-13B</b> blank specification |
static SingleDecodeType |
MICRO_PDF_417
Specifies that the data should be encoded with
<b>MicroPdf417</b> barcode specification |
static SingleDecodeType |
MICRO_QR
Specifies that the data should be encoded with
<b>MicroQR Code</b> barcode specification |
static SingleDecodeType |
MSI
Specifies that the data should be encoded with
<b>MSI Plessey</b> barcode specification |
static SingleDecodeType |
NONE
Unspecified decode type.
|
static SingleDecodeType |
ONE_CODE
Specifies that the data should be encoded with USPS
<b>OneCode</b> barcode specification |
static SingleDecodeType |
OPC
Specifies that the data should be encoded with
<b>OPC</b> barcode specification |
static SingleDecodeType |
PATCH_CODE
Represents Patch code barcode(T barcode, ""), ""); supports recognition only.
|
static SingleDecodeType |
PDF_417
2D barcode symbology Pdf417
|
static SingleDecodeType |
PHARMACODE
Represents Pharmacode barcode.
|
static SingleDecodeType |
PLANET
Specifies that the data should be encoded with
<b>Planet</b> barcode specification |
static SingleDecodeType |
POSTNET
Specifies that the data should be encoded with
<b>Postnet</b> barcode specification |
static SingleDecodeType |
PZN
Represents PZN barcode.This Symbology is also known as Pharma Zentral Nummer, "");Pharmazentralnummer
|
static SingleDecodeType |
QR
Specifies that the data should be encoded with
<b>QR Code</b> barcode specification |
static SingleDecodeType |
RM_4_SCC
Represents RM4SCC barcode.
|
static SingleDecodeType |
SCC_14
Specifies that the data should be encoded with
<b>SCC14</b> barcode specification |
static SingleDecodeType |
SSCC_18
Specifies that the data should be encoded with
<b>SSCC18</b> barcode specification |
static SingleDecodeType |
STANDARD_2_OF_5
Specifies that the data should be encoded with
<b>Standard 2 of 5</b> barcode specification |
static SingleDecodeType |
SUPPLEMENT
Specifies that the data should be encoded with
<b>Supplement</b> barcode specification |
static SingleDecodeType |
SWISS_POST_PARCEL
Specifies that the data should be encoded with
<b>Swiss Post Parcel Barcode</b> barcode specification. |
static SingleDecodeType |
UPCA
Specifies that the data should be encoded with
<b>UPC-A</b> barcode specification |
static SingleDecodeType |
UPCE
Specifies that the data should be encoded with
<b>UPC-E</b> barcode specification |
static SingleDecodeType |
VIN
Represents VIN (Vehicle Identification Number, "") Barcode.
|
Constructor and Description |
---|
DecodeType() |
Modifier and Type | Method and Description |
---|---|
static SingleDecodeType[] |
getAllSupportedTypesArray()
Gets an array that represents AllSupportedTypes
|
static String[] |
getNames()
Retrieves an array of the names of the decode types.
|
static boolean |
parse(String parsingType,
SingleDecodeType[] result)
Converts the string representation of a SingleDecodeType to its instance.
|
static BaseDecodeType |
scanSets(BaseDecodeType... barcodeTypes)
Specify scan sets by barcodeTypes
|
static boolean |
tryParse(String parsingType,
MultyDecodeType[] result)
Converts the string representation of a MultyDecodeType to its instance.
|
static boolean |
tryParse(String parsingType,
SingleDecodeType[] result)
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 encoded with <b>CODABAR</b>
barcode specification
public static final SingleDecodeType CODE_11
Specifies that the data should be encoded with <b>CODE 11</b>
barcode specification
public static final SingleDecodeType CODE_39_STANDARD
Specifies that the data should be encoded with <b>Standard CODE 39</b>
barcode specification
public static final SingleDecodeType CODE_39_EXTENDED
Specifies that the data should be encoded with <b>Extended CODE 39</b>
barcode specification
public static final SingleDecodeType CODE_93_STANDARD
Specifies that the data should be encoded with <b>Standard CODE 93</b>
barcode specification
public static final SingleDecodeType CODE_93_EXTENDED
Specifies that the data should be encoded with <b>Extended CODE 93</b>
barcode specification
public static final SingleDecodeType CODE_128
Specifies that the data should be encoded with <b>CODE 128</b>
barcode specification
public static final SingleDecodeType GS_1_CODE_128
Specifies that the data should be encoded with <b>GS1 CODE 128</b>
barcode specification
public static final SingleDecodeType EAN_8
Specifies that the data should be encoded with <b>EAN-8</b>
barcode specification
public static final SingleDecodeType EAN_13
Specifies that the data should be encoded with <b>EAN-13</b>
barcode specification
public static final SingleDecodeType EAN_14
Specifies that the data should be encoded with <b>EAN14</b>
barcode specification
public static final SingleDecodeType SCC_14
Specifies that the data should be encoded with <b>SCC14</b>
barcode specification
public static final SingleDecodeType SSCC_18
Specifies that the data should be encoded with <b>SSCC18</b>
barcode specification
public static final SingleDecodeType UPCA
Specifies that the data should be encoded with <b>UPC-A</b>
barcode specification
public static final SingleDecodeType UPCE
Specifies that the data should be encoded with <b>UPC-E</b>
barcode specification
public static final SingleDecodeType ISBN
Specifies that the data should be encoded with <b>ISBN</b>
barcode specification
public static final SingleDecodeType STANDARD_2_OF_5
Specifies that the data should be encoded with <b>Standard 2 of 5</b>
barcode specification
public static final SingleDecodeType INTERLEAVED_2_OF_5
Specifies that the data should be encoded with <b>INTERLEAVED 2 of 5</b>
barcode specification
public static final SingleDecodeType MATRIX_2_OF_5
Specifies that the data should be encoded with <b>Matrix 2 of 5</b>
barcode specification
public static final SingleDecodeType ITALIAN_POST_25
Represents Italian Post 25 barcode.
public static final SingleDecodeType IATA_2_OF_5
Represents IATA 2 of 5 barcode.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 encoded with <b>ITF14</b>
barcode specification
public static final SingleDecodeType ITF_6
Specifies that the data should be encoded with <b>ITF6</b>
barcode specification
public static final SingleDecodeType MSI
Specifies that the data should be encoded with <b>MSI Plessey</b>
barcode specification
public static final SingleDecodeType VIN
Represents VIN (Vehicle Identification Number, "") Barcode.
public static final SingleDecodeType DEUTSCHE_POST_IDENTCODE
Specifies that the data should be encoded with <b>DeutschePost Ident code</b>
barcode specification
public static final SingleDecodeType DEUTSCHE_POST_LEITCODE
Specifies that the data should be encoded with <b>DeutschePost Leit code</b>
barcode specification
public static final SingleDecodeType OPC
Specifies that the data should be encoded with <b>OPC</b>
barcode specification
public static final SingleDecodeType PZN
Represents PZN barcode.This Symbology is also known as Pharma Zentral Nummer, "");Pharmazentralnummer
public static final SingleDecodeType PHARMACODE
Represents Pharmacode barcode. This Symbology is also known as Code32
public static final SingleDecodeType DATA_MATRIX
2D barcode symbology DataMatrix
public static final SingleDecodeType GS_1_DATA_MATRIX
2D barcode symbology GS1DataMatrix
public static final SingleDecodeType QR
Specifies that the data should be encoded with <b>QR Code</b>
barcode specification
public static final SingleDecodeType AZTEC
Specifies that the data should be encoded with <b>Aztec</b>
barcode specification
public static final SingleDecodeType PDF_417
2D barcode symbology Pdf417
public static final SingleDecodeType MACRO_PDF_417
Specifies that the data should be encoded with <b>MacroPdf417</b>
barcode specification
public static final SingleDecodeType MICRO_PDF_417
Specifies that the data should be encoded with <b>MicroPdf417</b>
barcode specification
public static final SingleDecodeType CODABLOCK_F
Specifies that the data should be encoded with <b>CodablockF</b>
barcode specification
public static final SingleDecodeType AUSTRALIA_POST
Represents Australia Post Customer BarCode
public static final SingleDecodeType POSTNET
Specifies that the data should be encoded with <b>Postnet</b>
barcode specification
public static final SingleDecodeType PLANET
Specifies that the data should be encoded with <b>Planet</b>
barcode specification
public static final SingleDecodeType ONE_CODE
Specifies that the data should be encoded with USPS <b>OneCode</b>
barcode specification
public static final SingleDecodeType RM_4_SCC
Represents RM4SCC barcode. RM4SCC (Royal Mail 4-state Customer Code, "") is used for automated mail sort process in UK.
public static final SingleDecodeType DATABAR_OMNI_DIRECTIONAL
Represents GS1 Databar omni-directional barcode
public static final SingleDecodeType DATABAR_TRUNCATED
Represents GS1 Databar truncated barcode
public static final SingleDecodeType DATABAR_LIMITED
Represents GS1 Databar limited barcode, ""); supports recognition only.
public static final SingleDecodeType DATABAR_EXPANDED
Represents GS1 Databar expanded barcode, ""); supports recognition only.
public static final SingleDecodeType DATABAR_STACKED_OMNI_DIRECTIONAL
Represents GS1 Databar stacked omni-directional barcode
public static final SingleDecodeType DATABAR_STACKED
Represents GS1 Databar stacked barcode
public static final SingleDecodeType DATABAR_EXPANDED_STACKED
Represents GS1 Databar expanded stacked barcode
public static final SingleDecodeType PATCH_CODE
Represents Patch code barcode(T barcode, ""), ""); supports recognition only.
public static final SingleDecodeType ISSN
Specifies that the data should be encoded with <b>ISSN</b>
barcode specification
public static final SingleDecodeType ISMN
Specifies that the data should be encoded with <b>ISMN</b>
barcode specification
public static final SingleDecodeType SUPPLEMENT
Specifies that the data should be encoded with <b>Supplement</b>
barcode specification
public static final SingleDecodeType AUSTRALIAN_POSTE_PARCEL
Specifies that the data should be encoded with <b>Australian Post Domestic eParcel Barcode</b>
barcode specification
public static final SingleDecodeType SWISS_POST_PARCEL
Specifies that the data should be encoded with <b>Swiss Post Parcel Barcode</b>
barcode specification. Supported types: Domestic Mail, ""); International Mail, ""); Additional Services (new, "")
public static final SingleDecodeType CODE_16_K
Specifies that the data should be encoded with <b>Swiss Post Parcel Barcode</b>
barcode specification. Supported types: Domestic Mail, ""); International Mail, ""); Additional Services (new, "")
public static final SingleDecodeType MICRO_QR
Specifies that the data should be encoded with <b>MicroQR Code</b>
barcode specification
public static final SingleDecodeType COMPACT_PDF_417
Specifies that the data should be encoded with <b>CompactPdf417</b>
(Pdf417Truncated, "") barcode specification
public static final SingleDecodeType GS_1_QR
Specifies that the data should be encoded with <b>GS1 QR</b>
barcode specification
public static final SingleDecodeType MAXI_CODE
Specifies that the data should be encoded with <b>MaxiCode</b>
barcode specification
public static final SingleDecodeType MICR_E_13_B
Specifies that the data should be encoded with <b>MICR E-13B</b>
blank specification
public static final SingleDecodeType CODE_32
Specifies that the data should be encoded with <b>Code32</b>
blank specification
public static final SingleDecodeType DATA_LOGIC_2_OF_5
Specifies that the data should be encoded with <b>DataLogic 2 of 5</b>
blank specification
public static final SingleDecodeType DOT_CODE
public static final SingleDecodeType DUTCH_KIX
Specifies that the data should be encoded 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 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 String[] getNames()
Retrieves an array of the names of the decode types.
public static boolean parse(String parsingType, SingleDecodeType[] result)
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.result
- An actual SingleDecodeType returns, when conversion has completed successfully;
otherwise it returns indefinite type. or SingleDecodeType (-1, "None").
<b>true</b>
if s was converted successfully; otherwise, <b>false</b>
.DecodeType.NONE
public static boolean tryParse(String parsingType, SingleDecodeType[] result)
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.result
- An actual SingleDecodeType returns, when conversion has completed successfully;
otherwise it returns indefinite type. or SingleDecodeType (-1, "None").
<b>true</b>
if s was converted successfully; otherwise, <b>false</b>
.DecodeType.None
public static boolean tryParse(String parsingType, MultyDecodeType[] result)
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.result
- An actual MultyDecodeType is returned, when conversion has completed successfully;
otherwise it returns indefinite type. or MultyDecodeType ("None").
<b>true</b>
if s was converted successfully; otherwise, <b>false</b>
.DecodeType.None
Copyright (c) 2002-2017 Aspose Pty Ltd. All Rights Reserved.