public class DecodeType
extends java.lang.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 Australian Post Domestic eParcel Barcode barcode specification
|
static SingleDecodeType |
AZTEC
Specifies that the data should be encoded with Aztec barcode specification
|
static SingleDecodeType |
CODABAR
Specifies that the data should be encoded with CODABAR barcode specification
|
static SingleDecodeType |
CODABLOCK_F
Specifies that the data should be encoded with CodablockF barcode specification
|
static SingleDecodeType |
CODE_11
Specifies that the data should be encoded with CODE 11 barcode specification
|
static SingleDecodeType |
CODE_128
Specifies that the data should be encoded with CODE 128 barcode specification
|
static SingleDecodeType |
CODE_16_K
Specifies that the data should be encoded with Swiss Post Parcel Barcode barcode specification.
|
static SingleDecodeType |
CODE_32
Specifies that the data should be encoded with Code32 blank specification
|
static SingleDecodeType |
CODE_39_EXTENDED
Specifies that the data should be encoded with Extended CODE 39 barcode specification
|
static SingleDecodeType |
CODE_39_STANDARD
Specifies that the data should be encoded with Standard CODE 39 barcode specification
|
static SingleDecodeType |
CODE_93_EXTENDED
Specifies that the data should be encoded with Extended CODE 93 barcode specification
|
static SingleDecodeType |
CODE_93_STANDARD
Specifies that the data should be encoded with Standard CODE 93 barcode specification
|
static SingleDecodeType |
COMPACT_PDF_417
Specifies that the data should be encoded with CompactPdf417 (Pdf417Truncated, "") barcode specification
|
static SingleDecodeType |
DATA_LOGIC_2_OF_5
Specifies that the data should be encoded with DataLogic 2 of 5 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 DeutschePost Ident code barcode specification
|
static SingleDecodeType |
DEUTSCHE_POST_LEITCODE
Specifies that the data should be encoded with DeutschePost Leit code 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 DotCode blank specification
|
static SingleDecodeType |
EAN_13
Specifies that the data should be encoded with EAN-13 barcode specification
|
static SingleDecodeType |
EAN_14
Specifies that the data should be encoded with EAN14 barcode specification
|
static SingleDecodeType |
EAN_8
Specifies that the data should be encoded with EAN-8 barcode specification
|
static SingleDecodeType |
GS_1_CODE_128
Specifies that the data should be encoded with GS1 CODE 128 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 GS1 QR 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 INTERLEAVED 2 of 5 barcode specification
|
static SingleDecodeType |
ISBN
Specifies that the data should be encoded with ISBN barcode specification
|
static SingleDecodeType |
ISMN
Specifies that the data should be encoded with ISMN barcode specification
|
static SingleDecodeType |
ISSN
Specifies that the data should be encoded with ISSN barcode specification
|
static SingleDecodeType |
ITALIAN_POST_25
Represents Italian Post 25 barcode.
|
static SingleDecodeType |
ITF_14
Specifies that the data should be encoded with ITF14 barcode specification
|
static SingleDecodeType |
ITF_6
Specifies that the data should be encoded with ITF6 barcode specification
|
static SingleDecodeType |
MACRO_PDF_417
Specifies that the data should be encoded with MacroPdf417 barcode specification
|
static SingleDecodeType |
MATRIX_2_OF_5
Specifies that the data should be encoded with Matrix 2 of 5 barcode specification
|
static SingleDecodeType |
MAXI_CODE
Specifies that the data should be encoded with MaxiCode barcode specification
|
static SingleDecodeType |
MICR_E_13_B
Specifies that the data should be encoded with MICR E-13B blank specification
|
static SingleDecodeType |
MICRO_PDF_417
Specifies that the data should be encoded with MicroPdf417 barcode specification
|
static SingleDecodeType |
MICRO_QR
Specifies that the data should be encoded with MicroQR Code barcode specification
|
static SingleDecodeType |
MSI
Specifies that the data should be encoded with MSI Plessey barcode specification
|
static SingleDecodeType |
NONE
Unspecified decode type.
|
static SingleDecodeType |
ONE_CODE
Specifies that the data should be encoded with USPS OneCode barcode specification
|
static SingleDecodeType |
OPC
Specifies that the data should be encoded with OPC barcode specification
|
static SingleDecodeType |
PATCH_CODE
Represents Patch code 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 Planet barcode specification
|
static SingleDecodeType |
POSTNET
Specifies that the data should be encoded with Postnet barcode specification
|
static SingleDecodeType |
PZN
Represents PZN barcode.This encode type is also known as Pharma Zentral Nummer, "");Pharmazentralnummer
|
static SingleDecodeType |
QR
Specifies that the data should be encoded with QR Code barcode specification
|
static SingleDecodeType |
RM_4_SCC
Represents RM4SCC barcode.
|
static SingleDecodeType |
SCC_14
Specifies that the data should be encoded with SCC14 barcode specification
|
static SingleDecodeType |
SSCC_18
Specifies that the data should be encoded with SSCC18 barcode specification
|
static SingleDecodeType |
STANDARD_2_OF_5
Specifies that the data should be encoded with Standard 2 of 5 barcode specification
|
static SingleDecodeType |
SUPPLEMENT
Specifies that the data should be encoded with Supplement barcode specification
|
static SingleDecodeType |
SWISS_POST_PARCEL
Specifies that the data should be encoded with Swiss Post Parcel Barcode barcode specification.
|
static SingleDecodeType |
UPCA
Specifies that the data should be encoded with UPC-A barcode specification
|
static SingleDecodeType |
UPCE
Specifies that the data should be encoded with UPC-E 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 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 encoded with CODABAR barcode specification
public static final SingleDecodeType CODE_11
Specifies that the data should be encoded with CODE 11 barcode specification
public static final SingleDecodeType CODE_39_STANDARD
Specifies that the data should be encoded with Standard CODE 39 barcode specification
public static final SingleDecodeType CODE_39_EXTENDED
Specifies that the data should be encoded with Extended CODE 39 barcode specification
public static final SingleDecodeType CODE_93_STANDARD
Specifies that the data should be encoded with Standard CODE 93 barcode specification
public static final SingleDecodeType CODE_93_EXTENDED
Specifies that the data should be encoded with Extended CODE 93 barcode specification
public static final SingleDecodeType CODE_128
Specifies that the data should be encoded with CODE 128 barcode specification
public static final SingleDecodeType GS_1_CODE_128
Specifies that the data should be encoded with GS1 CODE 128 barcode specification
public static final SingleDecodeType EAN_8
Specifies that the data should be encoded with EAN-8 barcode specification
public static final SingleDecodeType EAN_13
Specifies that the data should be encoded with EAN-13 barcode specification
public static final SingleDecodeType EAN_14
Specifies that the data should be encoded with EAN14 barcode specification
public static final SingleDecodeType SCC_14
Specifies that the data should be encoded with SCC14 barcode specification
public static final SingleDecodeType SSCC_18
Specifies that the data should be encoded with SSCC18 barcode specification
public static final SingleDecodeType UPCA
Specifies that the data should be encoded with UPC-A barcode specification
public static final SingleDecodeType UPCE
Specifies that the data should be encoded with UPC-E barcode specification
public static final SingleDecodeType ISBN
Specifies that the data should be encoded with ISBN barcode specification
public static final SingleDecodeType STANDARD_2_OF_5
Specifies that the data should be encoded with Standard 2 of 5 barcode specification
public static final SingleDecodeType INTERLEAVED_2_OF_5
Specifies that the data should be encoded with INTERLEAVED 2 of 5 barcode specification
public static final SingleDecodeType MATRIX_2_OF_5
Specifies that the data should be encoded with Matrix 2 of 5 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 ITF14 barcode specification
public static final SingleDecodeType ITF_6
Specifies that the data should be encoded with ITF6 barcode specification
public static final SingleDecodeType MSI
Specifies that the data should be encoded with MSI Plessey 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 DeutschePost Ident code barcode specification
public static final SingleDecodeType DEUTSCHE_POST_LEITCODE
Specifies that the data should be encoded with DeutschePost Leit code barcode specification
public static final SingleDecodeType OPC
Specifies that the data should be encoded with OPC barcode specification
public static final SingleDecodeType PZN
Represents PZN barcode.This encode type is also known as Pharma Zentral Nummer, "");Pharmazentralnummer
public static final SingleDecodeType PHARMACODE
Represents Pharmacode barcode. This encode type 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 QR Code barcode specification
public static final SingleDecodeType AZTEC
Specifies that the data should be encoded with Aztec 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 MacroPdf417 barcode specification
public static final SingleDecodeType MICRO_PDF_417
Specifies that the data should be encoded with MicroPdf417 barcode specification
public static final SingleDecodeType CODABLOCK_F
Specifies that the data should be encoded with CodablockF 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 Postnet barcode specification
public static final SingleDecodeType PLANET
Specifies that the data should be encoded with Planet barcode specification
public static final SingleDecodeType ONE_CODE
Specifies that the data should be encoded with USPS OneCode 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, supports recognition only.
public static final SingleDecodeType ISSN
Specifies that the data should be encoded with ISSN barcode specification
public static final SingleDecodeType ISMN
Specifies that the data should be encoded with ISMN barcode specification
public static final SingleDecodeType SUPPLEMENT
Specifies that the data should be encoded with Supplement barcode specification
public static final SingleDecodeType AUSTRALIAN_POSTE_PARCEL
Specifies that the data should be encoded with Australian Post Domestic eParcel Barcode barcode specification
public static final SingleDecodeType SWISS_POST_PARCEL
Specifies that the data should be encoded with Swiss Post Parcel Barcode 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 Swiss Post Parcel Barcode 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 MicroQR Code barcode specification
public static final SingleDecodeType COMPACT_PDF_417
Specifies that the data should be encoded with CompactPdf417 (Pdf417Truncated, "") barcode specification
public static final SingleDecodeType GS_1_QR
Specifies that the data should be encoded with GS1 QR barcode specification
public static final SingleDecodeType MAXI_CODE
Specifies that the data should be encoded with MaxiCode barcode specification
public static final SingleDecodeType MICR_E_13_B
Specifies that the data should be encoded with MICR E-13B blank specification
public static final SingleDecodeType CODE_32
Specifies that the data should be encoded with Code32 blank specification
public static final SingleDecodeType DATA_LOGIC_2_OF_5
Specifies that the data should be encoded with DataLogic 2 of 5 blank specification
public static final SingleDecodeType DOT_CODE
public static final SingleDecodeType DUTCH_KIX
Specifies that the data should be encoded with DotCode blank specification
public static final MultyDecodeType ALL_SUPPORTED_TYPES
Specifies that data will be checked with all available symbologies
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").