Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
De naam: Aspose.BarCode.BarCodeRecognition Verzameling: Aspose.BarCode.dll (25.4.0)
Public interface voor Customer Information Field decoding die wordt gebruikt in AustraliëPost symbooliek.
public interface AustraliaPostCustomerInformationDecoder
Methods
Decode(String)
Decodeer klantinformatieveld van AustraliëPost symbooliek.Het kan worden gebruikt voor verschillende interpretaties van gegevens van NTable en CTable codering.De gegevens worden verstrekt als een reeks barwaarden: 0, 1, 2 of 3.
string Decode(string customerInformationField)
Parameters
customerInformationField
string
Het Kundeinformatieveld gecodeerd als een reeks grondbarwaarden: 0, 1, 2 of 3
Returns
de gedecodeerde klantinformatieveldlijn
Examples
Dit voorbeeld toont hoe u gegevens kunt decoderen met AustraliëPostCustomerInformationDecoder-interface
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();
}