com.aspose.barcode.barcoderecognition

Class DecodeType



  • public class DecodeType
    extends Object

    Specify the type of barcode to read.


     Detect an code39 and Code128 barcode 
     
     BarCodeReader 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();
     

    • Field Detail

      • CODABAR

        public static final SingleDecodeType CODABAR

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

      • CODE_11

        public static final SingleDecodeType CODE_11

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

      • CODE_39_STANDARD

        public static final SingleDecodeType CODE_39_STANDARD

        Specifies that the data should be encoded with <b>Standard CODE 39</b> barcode specification

      • CODE_39_EXTENDED

        public static final SingleDecodeType CODE_39_EXTENDED

        Specifies that the data should be encoded with <b>Extended CODE 39</b> barcode specification

      • CODE_93_STANDARD

        public static final SingleDecodeType CODE_93_STANDARD

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

      • CODE_93_EXTENDED

        public static final SingleDecodeType CODE_93_EXTENDED

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

      • CODE_128

        public static final SingleDecodeType CODE_128

        Specifies that the data should be encoded 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 encoded with <b>GS1 CODE 128</b> barcode specification

      • EAN_8

        public static final SingleDecodeType EAN_8

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

      • EAN_13

        public static final SingleDecodeType EAN_13

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

      • EAN_14

        public static final SingleDecodeType EAN_14

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

      • SCC_14

        public static final SingleDecodeType SCC_14

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

      • SSCC_18

        public static final SingleDecodeType SSCC_18

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

      • UPCA

        public static final SingleDecodeType UPCA

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

      • UPCE

        public static final SingleDecodeType UPCE

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

      • ISBN

        public static final SingleDecodeType ISBN

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

      • STANDARD_2_OF_5

        public static final SingleDecodeType STANDARD_2_OF_5

        Specifies that the data should be encoded 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 encoded 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 encoded with <b>Matrix 2 of 5</b> barcode specification

      • ITALIAN_POST_25

        public static final SingleDecodeType ITALIAN_POST_25

        Represents Italian Post 25 barcode.

      • IATA_2_OF_5

        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.

      • ITF_14

        public static final SingleDecodeType ITF_14

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

      • ITF_6

        public static final SingleDecodeType ITF_6

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

      • MSI

        public static final SingleDecodeType MSI

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

      • VIN

        public static final SingleDecodeType VIN

        Represents VIN (Vehicle Identification Number, "") Barcode.

      • DEUTSCHE_POST_IDENTCODE

        public static final SingleDecodeType DEUTSCHE_POST_IDENTCODE

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

      • DEUTSCHE_POST_LEITCODE

        public static final SingleDecodeType DEUTSCHE_POST_LEITCODE

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

      • OPC

        public static final SingleDecodeType OPC

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

      • PZN

        public static final SingleDecodeType PZN

        Represents PZN barcode.This Symbology is also known as Pharma Zentral Nummer, "");Pharmazentralnummer

      • PHARMACODE

        public static final SingleDecodeType PHARMACODE

        Represents Pharmacode barcode. This Symbology is also known as Code32

      • DATA_MATRIX

        public static final SingleDecodeType DATA_MATRIX

        2D barcode symbology DataMatrix

      • GS_1_DATA_MATRIX

        public static final SingleDecodeType GS_1_DATA_MATRIX

        2D barcode symbology GS1DataMatrix

      • QR

        public static final SingleDecodeType QR

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

      • AZTEC

        public static final SingleDecodeType AZTEC

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

      • PDF_417

        public static final SingleDecodeType PDF_417

        2D barcode symbology Pdf417

      • MACRO_PDF_417

        public static final SingleDecodeType MACRO_PDF_417

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

      • MICRO_PDF_417

        public static final SingleDecodeType MICRO_PDF_417

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

      • CODABLOCK_F

        public static final SingleDecodeType CODABLOCK_F

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

      • AUSTRALIA_POST

        public static final SingleDecodeType AUSTRALIA_POST

        Represents Australia Post Customer BarCode

      • POSTNET

        public static final SingleDecodeType POSTNET

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

      • PLANET

        public static final SingleDecodeType PLANET

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

      • ONE_CODE

        public static final SingleDecodeType ONE_CODE

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

      • RM_4_SCC

        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.

      • DATABAR_OMNI_DIRECTIONAL

        public static final SingleDecodeType DATABAR_OMNI_DIRECTIONAL

        Represents GS1 Databar omni-directional barcode

      • DATABAR_TRUNCATED

        public static final SingleDecodeType DATABAR_TRUNCATED

        Represents GS1 Databar truncated barcode

      • DATABAR_LIMITED

        public static final SingleDecodeType DATABAR_LIMITED

        Represents GS1 Databar limited barcode, ""); supports recognition only.

      • DATABAR_EXPANDED

        public static final SingleDecodeType DATABAR_EXPANDED

        Represents GS1 Databar expanded barcode, ""); supports recognition only.

      • DATABAR_STACKED_OMNI_DIRECTIONAL

        public static final SingleDecodeType DATABAR_STACKED_OMNI_DIRECTIONAL

        Represents GS1 Databar stacked omni-directional barcode

      • DATABAR_STACKED

        public static final SingleDecodeType DATABAR_STACKED

        Represents GS1 Databar stacked barcode

      • DATABAR_EXPANDED_STACKED

        public static final SingleDecodeType DATABAR_EXPANDED_STACKED

        Represents GS1 Databar expanded stacked barcode

      • PATCH_CODE

        public static final SingleDecodeType PATCH_CODE

        Represents Patch code barcode(T barcode, ""), ""); supports recognition only.

      • ISSN

        public static final SingleDecodeType ISSN

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

      • ISMN

        public static final SingleDecodeType ISMN

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

      • SUPPLEMENT

        public static final SingleDecodeType SUPPLEMENT

        Specifies that the data should be encoded with <b>Supplement</b> barcode specification

      • AUSTRALIAN_POSTE_PARCEL

        public static final SingleDecodeType AUSTRALIAN_POSTE_PARCEL

        Specifies that the data should be encoded 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 encoded with <b>Swiss Post Parcel Barcode</b> barcode specification. Supported types: Domestic Mail, ""); International Mail, ""); Additional Services (new, "")

      • CODE_16_K

        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, "")

      • MICRO_QR

        public static final SingleDecodeType MICRO_QR

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

      • COMPACT_PDF_417

        public static final SingleDecodeType COMPACT_PDF_417

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

      • GS_1_QR

        public static final SingleDecodeType GS_1_QR

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

      • MAXI_CODE

        public static final SingleDecodeType MAXI_CODE

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

      • MICR_E_13_B

        public static final SingleDecodeType MICR_E_13_B

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

      • CODE_32

        public static final SingleDecodeType CODE_32

        Specifies that the data should be encoded with <b>Code32</b> blank specification

      • DATA_LOGIC_2_OF_5

        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

      • DOT_CODE

        public static final SingleDecodeType DOT_CODE
        Specifies that the data should be encoded with DotCode blank specification
      • DUTCH_KIX

        public static final SingleDecodeType DUTCH_KIX

        Specifies that the data should be encoded with <b>DotCode</b> blank specification

      • ALL_SUPPORTED_TYPES

        public static final MultyDecodeType ALL_SUPPORTED_TYPES

        Specifies that data will be checked with all available symbologies

    • Constructor Detail

      • DecodeType

        public DecodeType()
    • Method Detail

      • getAllSupportedTypesArray

        public static SingleDecodeType[] getAllSupportedTypesArray()

        Gets an array that represents AllSupportedTypes

        Returns:
      • 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
      • 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.
      • 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 representation to convert.
        result - An actual SingleDecodeType returns, when conversion has completed successfully;

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

        Returns:
        <b>true</b> if s was converted successfully; otherwise, <b>false</b>.
        See Also:
        DecodeType.NONE
      • tryParse

        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.

        Parameters:
        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").

        Returns:
        <b>true</b> if s was converted successfully; otherwise, <b>false</b>.
        See Also:
        DecodeType.None
      • tryParse

        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.

        Parameters:
        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").

        Returns:
        <b>true</b> if s was converted successfully; otherwise, <b>false</b>.
        See Also:
        DecodeType.None