public final class CustomerInformationInterpretingType
extends java.lang.Object
Defines the interpreting type(CTable or NTable) of customer information for AustralianPost BarCode.
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()); }
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()); }
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()); }