Class DecodeType

java.lang.Object
com.aspose.barcode.barcoderecognition.DecodeType

public class DecodeType extends 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_FULL_ASCII, DecodeType.CODE_128);
 for(BarCodeResult result : reader.readBarCodes())
 {
    System.out.println("BarCode Type: " + result.getCodeTypeName());
    System.out.println("BarCode CodeText: " + result.getCodeText());
 }
 

  • Field Details

    • NONE

      public static final SingleDecodeType NONE

      Unspecified decode type.

    • CODABAR

      public static final SingleDecodeType CODABAR

      Specifies that the data should be decoded with <b>CODABAR</b> barcode specification

    • CODE_11

      public static final SingleDecodeType CODE_11

      Specifies that the data should be decoded with <b>CODE 11</b> barcode specification

    • CODE_39

      public static final SingleDecodeType CODE_39

      Specifies that the data should be decoded with <b>Code 39</b> basic charset barcode specification: ISO/IEC 16388

    • CODE_39_FULL_ASCII

      public static final SingleDecodeType CODE_39_FULL_ASCII

      Specifies that the data should be decoded with <b>Code 39</b> full ASCII charset barcode specification: ISO/IEC 16388

    • CODE_93

      public static final SingleDecodeType CODE_93

      Specifies that the data should be decoded with <b>CODE 93</b> barcode specification

    • CODE_128

      public static final SingleDecodeType CODE_128

      Specifies that the data should be decoded with <b>CODE 128</b> barcode specification

    • GS_1_CODE_128

      public static final SingleDecodeType GS_1_CODE_128

      Specifies that the data should be decoded with <b>GS1 CODE 128</b> barcode specification

    • EAN_8

      public static final SingleDecodeType EAN_8

      Specifies that the data should be decoded with <b>EAN-8</b> barcode specification

    • EAN_13

      public static final SingleDecodeType EAN_13

      Specifies that the data should be decoded with <b>EAN-13</b> barcode specification

    • EAN_14

      public static final SingleDecodeType EAN_14

      Specifies that the data should be decoded with <b>EAN14</b> barcode specification

    • SCC_14

      public static final SingleDecodeType SCC_14

      Specifies that the data should be decoded with <b>SCC14</b> barcode specification

    • SSCC_18

      public static final SingleDecodeType SSCC_18

      Specifies that the data should be decoded with <b>SSCC18</b> barcode specification

    • UPCA

      public static final SingleDecodeType UPCA

      Specifies that the data should be decoded with <b>UPC-A</b> barcode specification

    • UPCE

      public static final SingleDecodeType UPCE

      Specifies that the data should be decoded with <b>UPC-E</b> barcode specification

    • ISBN

      public static final SingleDecodeType ISBN

      Specifies that the data should be decoded with <b>ISBN</b> barcode specification

    • STANDARD_2_OF_5

      public static final SingleDecodeType STANDARD_2_OF_5

      Specifies that the data should be decoded with <b>Standard 2 of 5</b> barcode specification

    • INTERLEAVED_2_OF_5

      public static final SingleDecodeType INTERLEAVED_2_OF_5

      Specifies that the data should be decoded with <b>INTERLEAVED 2 of 5</b> barcode specification

    • MATRIX_2_OF_5

      public static final SingleDecodeType MATRIX_2_OF_5

      Specifies that the data should be decoded with <b>Matrix 2 of 5</b> barcode specification

    • ITALIAN_POST_25

      public static final SingleDecodeType ITALIAN_POST_25

      Specifies that the data should be decoded with <b>Italian Post 25</b> barcode specification

    • IATA_2_OF_5

      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.

    • ITF_14

      public static final SingleDecodeType ITF_14

      Specifies that the data should be decoded with <b>ITF14</b> barcode specification

    • ITF_6

      public static final SingleDecodeType ITF_6

      Specifies that the data should be decoded with <b>ITF6</b> barcode specification

    • MSI

      public static final SingleDecodeType MSI

      Specifies that the data should be decoded with <b>MSI Plessey</b> barcode specification

    • VIN

      public static final SingleDecodeType VIN

      Specifies that the data should be decoded with <b>VIN</b> (Vehicle Identification Number) barcode specification

    • DEUTSCHE_POST_IDENTCODE

      public static final SingleDecodeType DEUTSCHE_POST_IDENTCODE

      Specifies that the data should be decoded with <b>DeutschePost Ident code</b> barcode specification

    • DEUTSCHE_POST_LEITCODE

      public static final SingleDecodeType DEUTSCHE_POST_LEITCODE

      Specifies that the data should be decoded with <b>DeutschePost Leit code</b> barcode specification

    • OPC

      public static final SingleDecodeType OPC

      Specifies that the data should be decoded with <b>OPC</b> barcode specification

    • PZN

      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. PZN7 and PZN8 are supported.

    • PHARMACODE

      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

    • DATA_MATRIX

      public static final SingleDecodeType DATA_MATRIX

      Specifies that the data should be decoded with <b>DataMatrix</b> barcode symbology

    • GS_1_DATA_MATRIX

      public static final SingleDecodeType GS_1_DATA_MATRIX

      Specifies that the data should be decoded with <b>GS1DataMatrix</b> barcode symbology

    • QR

      public static final SingleDecodeType QR

      Specifies that the data should be decoded with <b>QR Code</b> barcode specification

    • AZTEC

      public static final SingleDecodeType AZTEC

      Specifies that the data should be decoded with <b>Aztec</b> barcode specification

    • GS_1_AZTEC

      public static final SingleDecodeType GS_1_AZTEC

      Specifies that the data should be decoded with <b>GS1 Aztec</b> barcode specification

    • PDF_417

      public static final SingleDecodeType PDF_417

      Specifies that the data should be decoded with <b>Pdf417</b> barcode symbology

    • MACRO_PDF_417

      public static final SingleDecodeType MACRO_PDF_417

      Specifies that the data should be decoded with <b>MacroPdf417</b> barcode specification

    • MICRO_PDF_417

      public static final SingleDecodeType MICRO_PDF_417

      Specifies that the data should be decoded with <b>MicroPdf417</b> barcode specification

    • GS_1_MICRO_PDF_417

      public static final SingleDecodeType GS_1_MICRO_PDF_417
      Specifies that the data should be decoded with MicroPdf417 barcode specification
    • CODABLOCK_F

      public static final SingleDecodeType CODABLOCK_F

      Specifies that the data should be decoded with <b>CodablockF</b> barcode specification

    • AUSTRALIA_POST

      public static final SingleDecodeType AUSTRALIA_POST

      Specifies that the data should be decoded with <b>Australia Post</b> barcode specification

    • POSTNET

      public static final SingleDecodeType POSTNET

      Specifies that the data should be decoded with <b>Postnet</b> barcode specification

    • PLANET

      public static final SingleDecodeType PLANET

      Specifies that the data should be decoded with <b>Planet</b> barcode specification

    • ONE_CODE

      public static final SingleDecodeType ONE_CODE

      Specifies that the data should be decoded with USPS <b>OneCode</b> barcode specification

    • RM_4_SCC

      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.

    • MAILMARK

      public static final SingleDecodeType MAILMARK
      Specifies that the data should be decoded with Royal Mail Mailmark barcode specification.
    • DATABAR_OMNI_DIRECTIONAL

      public static final SingleDecodeType DATABAR_OMNI_DIRECTIONAL

      Specifies that the data should be decoded with <b>GS1 DATABAR omni-directional</b> barcode specification

    • DATABAR_TRUNCATED

      public static final SingleDecodeType DATABAR_TRUNCATED

      Specifies that the data should be decoded with <b>GS1 DATABAR truncated</b> barcode specification

    • DATABAR_LIMITED

      public static final SingleDecodeType DATABAR_LIMITED

      Specifies that the data should be decoded with <b>GS1 DATABAR limited</b> barcode specification

    • DATABAR_EXPANDED

      public static final SingleDecodeType DATABAR_EXPANDED

      Specifies that the data should be decoded with <b>GS1 DATABAR expanded</b> barcode specification

    • DATABAR_STACKED_OMNI_DIRECTIONAL

      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

    • DATABAR_STACKED

      public static final SingleDecodeType DATABAR_STACKED

      Specifies that the data should be decoded with <b>GS1 DATABAR stacked</b> barcode specification

    • DATABAR_EXPANDED_STACKED

      public static final SingleDecodeType DATABAR_EXPANDED_STACKED

      Specifies that the data should be decoded with <b>GS1 DATABAR expanded stacked</b> barcode specification

    • PATCH_CODE

      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

    • ISSN

      public static final SingleDecodeType ISSN

      Specifies that the data should be decoded with <b>ISSN</b> barcode specification

    • ISMN

      public static final SingleDecodeType ISMN

      Specifies that the data should be decoded with <b>ISMN</b> barcode specification

    • SUPPLEMENT

      public static final SingleDecodeType SUPPLEMENT

      Specifies that the data should be decoded with <b>Supplement(EAN2, EAN5)</b> barcode specification

    • AUSTRALIAN_POSTE_PARCEL

      public static final SingleDecodeType AUSTRALIAN_POSTE_PARCEL

      Specifies that the data should be decoded with <b>Australian Post Domestic eParcel Barcode</b> barcode specification

    • SWISS_POST_PARCEL

      public static final SingleDecodeType SWISS_POST_PARCEL

      Specifies that the data should be decoded with <b>Swiss Post Parcel Barcode</b> barcode specification

    • CODE_16_K

      public static final SingleDecodeType CODE_16_K

      Specifies that the data should be decoded with <b>SCode16K</b> barcode specification

    • MICRO_QR

      public static final SingleDecodeType MICRO_QR

      Specifies that the data should be decoded with <b>MicroQR Code</b> barcode specification

    • COMPACT_PDF_417

      public static final SingleDecodeType COMPACT_PDF_417

      Specifies that the data should be decoded with <b>CompactPdf417</b> (Pdf417Truncated) barcode specification

    • GS_1_QR

      public static final SingleDecodeType GS_1_QR

      Specifies that the data should be decoded with <b>GS1 QR</b> barcode specification

    • MAXI_CODE

      public static final SingleDecodeType MAXI_CODE

      Specifies that the data should be decoded with <b>MaxiCode</b> barcode specification

    • MICR_E_13_B

      public static final SingleDecodeType MICR_E_13_B

      Specifies that the data should be decoded with <b>MICR E-13B</b> barcode specification

    • CODE_32

      public static final SingleDecodeType CODE_32

      Specifies that the data should be decoded with <b>Code32</b> barcode specification

    • DATA_LOGIC_2_OF_5

      public static final SingleDecodeType DATA_LOGIC_2_OF_5

      Specifies that the data should be decoded with <b>DataLogic 2 of 5</b> barcode specification

    • DOT_CODE

      public static final SingleDecodeType DOT_CODE

      Specifies that the data should be decoded with <b>DotCode</b> barcode specification

    • GS_1_DOT_CODE

      public static final SingleDecodeType GS_1_DOT_CODE

      Specifies that the data should be decoded with <b>GS1 DotCode</b> barcode specification

    • DUTCH_KIX

      public static final SingleDecodeType DUTCH_KIX

      Specifies that the data should be decoded with <b>DotCode</b> barcode specification

    • HIBC_CODE_39_LIC

      public static final SingleDecodeType HIBC_CODE_39_LIC

      Specifies that the data should be decoded with <b>HIBC LIC Code39</b> barcode specification

    • HIBC_CODE_128_LIC

      public static final SingleDecodeType HIBC_CODE_128_LIC

      Specifies that the data should be decoded with <b>HIBC LIC Code128</b> barcode specification

    • HIBC_AZTEC_LIC

      public static final SingleDecodeType HIBC_AZTEC_LIC

      Specifies that the data should be decoded with <b>HIBC LIC Aztec</b> barcode specification

    • HIBC_DATA_MATRIX_LIC

      public static final SingleDecodeType HIBC_DATA_MATRIX_LIC

      Specifies that the data should be decoded with <b>HIBC LIC DataMatrix</b> barcode specification

    • HIBCQRLIC

      public static final SingleDecodeType HIBCQRLIC

      Specifies that the data should be decoded with <b>HIBC LIC QR</b> barcode specification

    • HIBC_CODE_39_PAS

      public static final SingleDecodeType HIBC_CODE_39_PAS

      Specifies that the data should be decoded with <b>HIBC PAS Code39</b> barcode specification

    • HIBC_CODE_128_PAS

      public static final SingleDecodeType HIBC_CODE_128_PAS

      Specifies that the data should be decoded with <b>HIBC PAS Code128</b> barcode specification

    • HIBC_AZTEC_PAS

      public static final SingleDecodeType HIBC_AZTEC_PAS

      Specifies that the data should be decoded with <b>HIBC PAS Aztec</b> barcode specification

    • HIBC_DATA_MATRIX_PAS

      public static final SingleDecodeType HIBC_DATA_MATRIX_PAS

      Specifies that the data should be decoded with <b>HIBC PAS DataMatrix</b> barcode specification

    • HIBCQRPAS

      public static final SingleDecodeType HIBCQRPAS

      Specifies that the data should be decoded with <b>HIBC PAS QR</b> barcode specification

    • HAN_XIN

      public static final SingleDecodeType HAN_XIN
      Specifies that the data should be decoded with Han Xin Code barcode specification
    • GS_1_HAN_XIN

      public static final SingleDecodeType GS_1_HAN_XIN
      Specifies that the data should be decoded with GS1 Han Xin Code barcode specification
    • GS_1_COMPOSITE_BAR

      public static final SingleDecodeType GS_1_COMPOSITE_BAR

      Specifies that the data should be decoded with <b>GS1 Composite Bar</b> barcode specification

    • RECT_MICRO_QR

      public static final SingleDecodeType RECT_MICRO_QR
      Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification
    • ALL_SUPPORTED_TYPES

      public static final com.aspose.barcode.barcoderecognition.MultiDecodeType ALL_SUPPORTED_TYPES

      Specifies that data will be checked with all available symbologies

    • TYPES_1D

      public static final com.aspose.barcode.barcoderecognition.MultiDecodeType TYPES_1D
      Specifies that data will be checked with all of 1D barcode symbologies
    • TYPES_2D

      public static final com.aspose.barcode.barcoderecognition.MultiDecodeType TYPES_2D
      Specifies that data will be checked with all of 2D barcode symbologies
    • POSTAL_TYPES

      public static final com.aspose.barcode.barcoderecognition.MultiDecodeType POSTAL_TYPES
      Specifies that data will be checked with all of 1.5D POSTAL barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX
    • MOST_COMMON_TYPES

      public static final com.aspose.barcode.barcoderecognition.MultiDecodeType MOST_COMMON_TYPES
      Specifies that data will be checked with most commonly used symbologies
  • Constructor Details

    • DecodeType

      public DecodeType()
  • Method Details

    • getNames

      public static String[] getNames()

      Retrieves an array of the names of the decode types.

      Returns:
      A string array of the names of the decode types.
    • tryParseSingleDecodeType

      public static SingleDecodeType tryParseSingleDecodeType(String parsingType)

      Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

      Parameters:
      parsingType - A string containing a SingleDecodeType in the format as "EAN8" or "EAN13" or "CodaBar"... to convert.
      Returns:
      An actual SingleDecodeType returns, when conversion has completed successfully; otherwise it returns indefinite type: DecodeType.None.
    • tryParseMultiDecodeType

      public static com.aspose.barcode.barcoderecognition.MultiDecodeType tryParseMultiDecodeType(String parsingType)

      Converts the string representation of a MultiDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

      Parameters:
      parsingType - A string in the format as either "AllSupportedTypes" or "EAN8,EAN13,CodaBar" to convert.
      Returns:
      An actual MultiDecodeType is returned, when conversion has completed successfully; otherwise it returns indefinite type: new MultiDecodeType(DecodeType.None)
    • is1D

      public static boolean is1D(BaseDecodeType symbology)
      Determines if the specified BaseDecodeType contains any 1D barcode symbology
      Parameters:
      symbology - The BaseDecodeType to test.
      Returns:
      Returns true if BaseDecodeType contains any 1D barcode symbology; otherwise, returns false.
    • isPostal

      public static boolean isPostal(BaseDecodeType symbology)
      Determines if the specified BaseDecodeType contains any Postal barcode symbology
      Parameters:
      symbology - The BaseDecodeType to test
      Returns:
      Returns true if BaseDecodeType contains any Postal barcode symbology; otherwise, returns false.
    • is2D

      public static boolean is2D(BaseDecodeType symbology)
      Determines if the specified BaseDecodeType contains any 2D barcode symbology
      Parameters:
      symbology - The BaseDecodeType to test.
      Returns:
      Returns true if BaseDecodeTypeddddddddw contains any 2D barcode symbology; otherwise, returns false.
    • getAllSupportedTypesArray

      public static SingleDecodeType[] getAllSupportedTypesArray()

      Gets an array that represents AllSupportedTypes

    • scanSets

      public static BaseDecodeType scanSets(BaseDecodeType... barcodeTypes)

      Specify scan sets by barcodeTypes

      Parameters:
      barcodeTypes - Array of single and multy decode types
      Returns:
      A multi decode type
    • parse

      public static SingleDecodeType parse(String parsingType)

      Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

      Parameters:
      parsingType - A string containing a SingleDecodeType representation to convert.
      Returns:
      An actual SingleDecodeType returns, when conversion has completed successfully;

      otherwise it returns indefinite type. or SingleDecodeType (-1, "NONE").

    • parse

      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.
      Parameters:
      parsingType - A string containing a SingleDecodeType in the format as "EAN8" or "EAN13" or "CodaBar"... to convert.
      Returns:
      true if s was converted successfully; otherwise, false.