Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)
Public interface for Customer Information Field decoding which is used in AustraliaPost symbology. Implementation should be provided by user.
public interface AustraliaPostCustomerInformationDecoder
Methods
Decode(string)
Dekoduje pole informacji o kliencie z symboliki AustraliaPost. Może być używane do różnych interpretacji danych z kodowania NTable i CTable. Dane są dostarczane jako rząd surowych wartości kodów kreskowych: 0, 1, 2 lub 3.
string Decode(string customerInformationField)
Parameters
customerInformationField
string
Pole informacji o kliencie zakodowane jako rząd surowych wartości kodów kreskowych: 0, 1, 2 lub 3
Returns
zakodowany ciąg pola informacji o kliencie
Examples
Ten przykład pokazuje, jak dekodować dane za pomocą interfejsu AustraliaPostCustomerInformationDecoder
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();
}