public enum CustomerInformationInterpretingType extends java.lang.Enum<CustomerInformationInterpretingType>
Defines the interpreting type(C_TABLE or N_TABLE) of customer information for AustralianPost BarCode.
This sample shows how to generate and recognize Australia Post barcode with CTable Interpreting Type
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AustraliaPost, "5912345678ABCde");
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
BufferedImage image = generator.generateBarCodeImage();
BarCodeReader reader = new BarCodeReader(image, DecodeType.AUSTRALIA_POST);
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE);
for(BarCodeResult result : reader.readBarCodes())
{
System.out.println("BarCode Type: " + result.getCodeType());
System.out.println("BarCode CodeText: " + result.getCodeText());
}
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AustraliaPost, "59123456781234567"))
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.N_TABLE);
BufferedImage image = generator.generateBarCodeImage();
BarCodeReader reader = new BarCodeReader(image, DecodeType.AUSTRALIA_POST))
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.N_TABLE);
for(BarCodeResult result : reader.readBarCodes())
{
System.out.println("BarCode Type: " + result.getCodeType());
System.out.println("BarCode CodeText: " + result.getCodeText());
}
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "59123456780123012301230123");
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.OTHER);
BufferedImage image = generator.generateBarCodeImage();
BarCodeReader reader = new BarCodeReader(image, DecodeType.AUSTRALIA_POST);
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.OTHER);
for(BarCodeResult result : reader.readBarCodes())
{
System.out.println("BarCode Type: " + result.getCodeType());
System.out.println("BarCode CodeText: " + result.getCodeText());
}
| 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.
public static final CustomerInformationInterpretingType N_TABLE
Use N_TABLE to interpret the customer information. Allows digits.
public static final CustomerInformationInterpretingType OTHER
Do not interpret the customer information. Allows 0, 1, 2 or 3 symbol only.
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()