public enum CustomerInformationInterpretingType extends java.lang.Enum<CustomerInformationInterpretingType>
Defines the interpreting type(CTable or NTable) of customer information for AustralianPost BarCode.
Enum Constant and Description |
---|
CTable
Use CTable to interpret the customer information.
|
NTable
Use NTable to interpret the customer information.
|
Other
Do not interpret the customer information.
|
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.
|
public static final CustomerInformationInterpretingType CTable
Use CTable 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.CTable); b.setCodeText("5912345678ABCde"); BarCodeReader r = new BarCodeReader(b.getBarCodeImage(), DecodeType.AUSTRALIA_POST); r.setAustralianPostEncodingTable(CustomerInformationInterpretingType.CTable); while (r.read()) { System.out.println("BarCode Type: " + r.getCodeType()); System.out.println("BarCode CodeText: " + r.getCodeText()); }
public static final CustomerInformationInterpretingType NTable
Use NTable to interpret the customer information. Allows digits.
BarCodeBuilder b = new BarCodeBuilder(); b.setEncodeType(EncdeTypes.AUSTRALIA_POST); b.setAustralianPostEncodingTable(CustomerInformationInterpretingType.NTable); b.setCodeText("59123456781234567"); BarCodeReader r = new BarCodeReader(b.getBarCodeImage(), DecodeType.AUSTRALIA_POST); r.setAustralianPostEncodingTable(CustomerInformationInterpretingType.NTable); while (r.read()) { System.out.println("BarCode Type: " + r.getCodeType()); System.out.println("BarCode CodeText: " + r.getCodeText()); }
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()); }
public static CustomerInformationInterpretingType[] values()
for (CustomerInformationInterpretingType c : CustomerInformationInterpretingType.values()) System.out.println(c);
public static CustomerInformationInterpretingType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()