AustraliaPostCustomerInformationDecoder.Decode
Contents
[
Hide
]AustraliaPostCustomerInformationDecoder.Decode method
Decode Customer Information Field from AustraliaPost symbology. Can be used for different data interpretation from NTable and CTable encoding. Data is provided as a row of bar values: 0, 1, 2 or 3.
public string Decode(string customerInformationField)
Parameter | Type | Description |
---|---|---|
customerInformationField | String | The Customer Information Field encoded as row of raw bar values: 0, 1, 2 or 3 |
Return Value
the decoded Customer Information Field string
Examples
This sample shows how to decode data with AustraliaPostCustomerInformationDecoder interface
[C#]
string[] N_Table = { "00", "01", "02", "10", "11", "12", "20", "21", "22", "30" };
public string Decode(string customerInformationField)
{
StringBuilder bd = new StringBuilder();
for (int i = 0; customerInformationField.Length > i; i += 2)
{
if (customerInformationField.Length >= i + 2)
{
string tmp = customerInformationField.Substring(i, 2);
for (int j = 0; N_Table.Length > j; j++)
{
if (N_Table[j].Equals(tmp))
{
bd.Append(j);
break;
}
}
}
}
return bd.ToString();
}
See Also
- interface AustraliaPostCustomerInformationDecoder
- namespace Aspose.BarCode.BarCodeRecognition
- assembly Aspose.BarCode