public enum CustomerInformationInterpretingType extends java.lang.Enum<CustomerInformationInterpretingType>
Defines the interpreting type(C_TABLE or N_TABLE) of customer information for AustralianPost BarCode.
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.
|
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 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()); }
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()); }
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()