com.aspose.barcode.barcoderecognition

Enum CustomerInformationInterpretingType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      C_TABLE
      Use C_TABLE to interpret the customer information.
      N_TABLE
      Use N_TABLE to interpret the customer information.
      OTHER
      Do not interpret the customer information.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getValue() 
      static CustomerInformationInterpretingType valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CustomerInformationInterpretingType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • C_TABLE

        public static final CustomerInformationInterpretingType C_TABLE

        Use C_TABLE to interpret the customer information. Allows A..Z, a..z, 1..9, space and # sing.


                   BarCodeBuilder b = new BarCodeBuilder();
                   b.setEncodeType(EncodeTypes.AUSTRALIA_POST);
                   b.setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
                   b.setCodeText("5912345678ABCde");
                   BarCodeReader r = new BarCodeReader(b.getBarCodeImage(), DecodeType.AUSTRALIA_POST);
        
                   r.setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
                   while (r.read())
                   {
                   System.out.println("BarCode Type: " + r.getCodeType());
                   System.out.println("BarCode CodeText: " + r.getCodeText());
                   }
          

      • N_TABLE

        public static final CustomerInformationInterpretingType N_TABLE

        Use N_TABLE to interpret the customer information. Allows digits.


                 BarCodeBuilder b = new BarCodeBuilder();
                 b.setEncodeType(EncdeTypes.AUSTRALIA_POST);
                 b.setAustralianPostEncodingTable(CustomerInformationInterpretingType.N_TABLE);
                 b.setCodeText("59123456781234567");
                 BarCodeReader r = new BarCodeReader(b.getBarCodeImage(), DecodeType.AUSTRALIA_POST);
                 r.setAustralianPostEncodingTable(CustomerInformationInterpretingType.N_TABLE);
                 while (r.read())
                 {
                 System.out.println("BarCode Type: " + r.getCodeType());
                 System.out.println("BarCode CodeText: " + r.getCodeText());
                 }
          

      • OTHER

        public static final CustomerInformationInterpretingType OTHER

        Do not interpret the customer information. Allows 0, 1, 2 or 3 symbol only.


         BarCodeBuilder b = new BarCodeBuilder();
         b.setEncodeType(EncdeTypes.AUSTRALIA_POST);
         b.setAustralianPostEncodingTable(CustomerInformationInterpretingType.OTHER);
         b.setCodeText("59123456780123012301230123");
         BarCodeReader r = new BarCodeReader(b.getBarCodeImage(), DecodeType.AUSTRALIA_POST);
         r.setAustralianPostEncodingTable(CustomerInformationInterpretingType.OTHER);
         while (r.read())
         {
         System.out.println("BarCode Type: " + r.getCodeType());
         System.out.println("BarCode CodeText: " + r.getCodeText());
         }
          

    • Method Detail

      • values

        public static CustomerInformationInterpretingType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CustomerInformationInterpretingType c : CustomerInformationInterpretingType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CustomerInformationInterpretingType valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()