Class AustraliaPostSettings
java.lang.Object
com.aspose.barcode.barcoderecognition.AustraliaPostSettings
AustraliaPost decoding parameters. Contains parameters which make influence on recognized data of AustraliaPost symbology.
-
Method Summary
Modifier and TypeMethodDescriptionPublic interface for Customer Information Field decoding which is used in AustraliaPost symbology.Gets or sets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.booleanThe flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.voidPublic interface for Customer Information Field decoding which is used in AustraliaPost symbology.voidGets or sets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.voidsetIgnoreEndingFillingPatternsForCTable(boolean value) The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.
-
Method Details
-
getCustomerInformationInterpretingType
Gets or sets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.- Returns:
- The interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode
-
setCustomerInformationInterpretingType
Gets or sets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.- Parameters:
value- The interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode
-
getIgnoreEndingFillingPatternsForCTable
public boolean 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". Example BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "5912345678AB"); generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE); Bitmap image = generator.generateBarCodeImage(); BarCodeReader reader = new BarCodeReader(image, DecodeType.AUSTRALIA_POST); reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE); reader.getBarcodeSettings().getAustraliaPost().setIgnoreEndingFillingPatternsForCTable(true); for(BarCodeResult result : reader.readBarCodes()) { System.out.println("BarCode Type: " + result.getCodeType()); System.out.println("BarCode CodeText: " + result.getCodeText()); }- Returns:
- The flag which force AustraliaPost decoder to ignore last filling patterns during CTable method decoding
-
setIgnoreEndingFillingPatternsForCTable
public void setIgnoreEndingFillingPatternsForCTable(boolean value) 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". Example BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "5912345678AB"); generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE); Bitmap image = generator.generateBarCodeImage(); BarCodeReader reader = new BarCodeReader(image, DecodeType.AUSTRALIA_POST); reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE); reader.getBarcodeSettings().getAustraliaPost().setIgnoreEndingFillingPatternsForCTable(true); for(BarCodeResult result : reader.readBarCodes()) { System.out.println("BarCode Type: " + result.getCodeType()); System.out.println("BarCode CodeText: " + result.getCodeText()); } -
getCustomerInformationDecoder
Public interface for Customer Information Field decoding which is used in AustraliaPost symbology.- Returns:
- Public interface for Customer Information Field decoding which is used in AustraliaPost symbology.
-
setCustomerInformationDecoder
Public interface for Customer Information Field decoding which is used in AustraliaPost symbology.
-