Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

이름 공간 : Aspose.BarCode.BarCodeRecognition 모임: Aspose.BarCode.dll (25.4.0)

고객 정보 필드 해독에 대한 공공 인터페이스는 AustraliaPost 상징에서 사용됩니다.

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();
}
 한국어