com.aspose.barcode.barcoderecognition

Class CustomerInformationInterpretingType

  • java.lang.Object
    • com.aspose.barcode.barcoderecognition.CustomerInformationInterpretingType


  • public final class CustomerInformationInterpretingType
    extends java.lang.Object

    Defines the interpreting type(CTable or NTable) of customer information for AustralianPost BarCode.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int CTable
      Use CTable to interpret the customer information.
      static int NTable
      Use NTable to interpret the customer information.
      static int Other
      Do not interpret the customer information.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CTable

        public static final int CTable

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


                   BarCodeBuilder b = new BarCodeBuilder();
                   b.setSymbologyType(Symbology.AustraliaPost);
                   b.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.CTable);
                   b.setCodeText("5912345678ABCde");
                   BarCodeReader r = new BarCodeReader(b.getBarCodeImage(), DecodeType.AUSTRALIA_POST);
        
                   r.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.CTable);
                   while (r.read())
                   {
                   System.out.println("BarCode Type: " + r.getCodeType());
                   System.out.println("BarCode CodeText: " + r.getCodeText());
                   }
          

        See Also:
        Constant Field Values
      • NTable

        public static final int NTable

        Use NTable to interpret the customer information. Allows digits.


                 BarCodeBuilder b = new BarCodeBuilder();
                 b.setSymbologyType(Symbology.AustraliaPost);
                 b.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.NTable);
                 b.setCodeText("59123456781234567");
                 BarCodeReader r = new BarCodeReader(b.getBarCodeImage(), DecodeType.AUSTRALIA_POST);
                 r.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.NTable);
                 while (r.read())
                 {
                 System.out.println("BarCode Type: " + r.getCodeType());
                 System.out.println("BarCode CodeText: " + r.getCodeText());
                 }
          

        See Also:
        Constant Field Values
      • Other

        public static final int Other

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


         BarCodeBuilder b = new BarCodeBuilder();
         b.setSymbologyType(Symbology.AustraliaPost);
         b.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.Other);
         b.setCodeText("59123456780123012301230123");
         BarCodeReader r = new BarCodeReader(b.getBarCodeImage(), DecodeType.AUSTRALIA_POST);
         r.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.Other);
         while (r.read())
         {
         System.out.println("BarCode Type: " + r.getCodeType());
         System.out.println("BarCode CodeText: " + r.getCodeText());
         }
          

        See Also:
        Constant Field Values