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
クライアント情報フィールドの暗号化
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();
}