Interface AustraliaPostCustomerInformationDecoder
Interface AustraliaPostCustomerInformationDecoder
Der Name: Aspose.BarCode.BarCodeRecognition Zusammensetzung: Aspose.BarCode.dll (25.4.0)
Public Interface for Customer Information Field Decoding, die in AustralienPost Symbolologie verwendet wird.
public interface AustraliaPostCustomerInformationDecoder
Methods
Decode(String)
Decodieren Sie das Kundeninformationsfeld aus AustralienPost Symbolologie.Es kann für unterschiedliche Dateninterpretationen von NTable und CTable-Coding verwendet werden.Die Daten werden als eine Reihe von Barwerte bereitgestellt: 0, 1, 2 oder 3.
string Decode(string customerInformationField)
Parameters
customerInformationField
string
Das Kundeinformationsfeld verschlüsselt als Reihenfolge der Rohbarwerte: 0, 1, 2 oder 3
Returns
Die dekodierte Kundeninformationsfelder String
Examples
Dieses Beispiel zeigt, wie man Daten mit AustralienPostCustomerInformationDecoder-Interface dekodiert
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();
}