AustraliaPostSettings

AustraliaPostSettings

AustraliaPost decoding parameters. Contains parameters which make influence on recognized data of AustraliaPost symbology.

Constructor

new AustraliaPostSettings()

AustraliaPostSettings constructor
Source:

Methods

getCustomerInformationInterpretingType()

Gets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.
Returns:
Type Description
The interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode
Source:

getIgnoreEndingFillingPatternsForCTable()

The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.
CTable encoding method does not have any gaps in encoding table and sequnce "333" of filling paterns is decoded as letter "z".
Returns:
Type Description
The flag which force AustraliaPost decoder to ignore last filling patterns during CTable method decoding
Source:
Example
let generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "5912345678AB");
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
let image = generator.generateBarCodeImage(BarcodeImageFormat.PNG);
let reader = new BarCodeReader(image, null, DecodeType.AUSTRALIA_POST);
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE);
reader.getBarcodeSettings().getAustraliaPost().setIgnoreEndingFillingPatternsForCTable(true);
reader.readBarCodes().forEach(function(result, i, results)
{
    console.log("BarCode Type: " + result.getCodeType());
    console.log("BarCode CodeText: " + result.getCodeText());
});

setCustomerInformationInterpretingType(value)

Sets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.
Parameters:
Name Type Description
value The interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode
Source:

setIgnoreEndingFillingPatternsForCTable()

The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.
CTable encoding method does not have any gaps in encoding table and sequnce "333" of filling paterns is decoded as letter "z".
Returns:
Type Description
The flag which force AustraliaPost decoder to ignore last filling patterns during CTable method decoding
Source:
Example
let generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "5912345678AB");
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE);
let image = generator.generateBarCodeImage(BarcodeImageFormat.PNG);
let reader = new BarCodeReader(image, null, DecodeType.AUSTRALIA_POST);
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE);
reader.getBarcodeSettings().getAustraliaPost().setIgnoreEndingFillingPatternsForCTable(true);
reader.readBarCodes().forEach(function(result, i, results)
{
    console.log("BarCode Type: " + result.getCodeType());
    console.log("BarCode CodeText: " + result.getCodeText());
});