Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

名称: Aspose.BarCode.BarCodeRecognition 聚集: Aspose.BarCode.dll (25.4.0)

公共界面用于客户信息领域解码,该界面在澳大利亚邮件符号中使用。

public interface AustraliaPostCustomerInformationDecoder

Methods

Decode(线条)

从澳大利亚邮政象征中解码客户信息字段。它可以用于不同的数据解释从NTable和CTable编码。数据提供为一行字符串值:0,1,2或3。

string Decode(string customerInformationField)

Parameters

customerInformationField string

客户信息字段编码为原始字符串值序列: 0, 1, 2 或 3

Returns

string

解密的客户信息字段链

Examples

此样本显示如何用 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();
}
 中文