Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
도메인: Aspose.BarCode.BarCodeRecognition 번역: Aspose.BarCode.dll (26.1.0)
고객 정보를 포함하는 필드를 추출하기 위한 범용 인터페이스이며, AustraliaPost의 인코딩에 사용됩니다. 사용자는 구현을 제공해야 합니다.
public interface AustraliaPostCustomerInformationDecoderExamples
Decode(string)
AustraliaPost 코드에서 파생된 고객 정보 필드를 파싱합니다. NTable 및 CTable의 인코드 데이터에 대한 다양한 해석에 사용할 수 있습니다. 데이터는 0, 1, 2 또는 3의 행 값 시퀀스로 제공됩니다.
string Decode(string customerInformationField)Examples
customerInformationField 매미
고객 정보 열은 0, 1, 2 또는 3이라는 일련의 원시 데이터 값으로 인코딩됩니다.
Examples
고객 정보 필드로 분할된 배열
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();
}