Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)

호주 우편 기호에서 사용되는 고객 정보 필드 디코딩을 위한 공개 인터페이스입니다. 구현은 사용자에 의해 제공되어야 합니다.

public interface AustraliaPostCustomerInformationDecoder

메서드

Decode(string)

호주 우편 기호에서 고객 정보 필드를 디코딩합니다.
NTable 및 CTable 인코딩에서 다양한 데이터 해석에 사용할 수 있습니다.
데이터는 바 값의 행으로 제공됩니다: 0, 1, 2 또는 3.

string Decode(string customerInformationField)

매개변수

customerInformationField string

원시 바 값의 행으로 인코딩된 고객 정보 필드: 0, 1, 2 또는 3

반환 값

string

디코딩된 고객 정보 필드 문자열

예제

이 샘플은 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();
}
 한국어