Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
Omtrek: Aspose.BarCode.BarCodeRecognition Gebouwd: Aspose.BarCode.dll (26.1.0)
Algemene interface om velden met klantinformatie te extraheren, die wordt gebruikt tijdens de AustraliaPost-codering. De gebruiker moet de implementatie leveren.
public interface AustraliaPostCustomerInformationDecoderParameters
Decode(string)
Decodeert klantinformatievelden van de AustraliaPost‑code. Kan worden gebruikt om verschillende gegevens te interpreteren van NTable‑ en CTable‑codering. Gegevens worden geleverd als een reeks bandwaarden: 0, 1, 2 of 3.
string Decode(string customerInformationField)Parameters
customerInformationField siri
Veld met klantinformatie versleuteld als ruwe waardereeks: 0, 1, 2 of 3
Parameters
Array-veld is defect voor klantinformatie
Parameters
Dit voorbeeld laat zien hoe je data decodeert met behulp van de interface 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();
}