Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

A név: Aspose.BarCode.BarCodeRecognition Összefoglaló: Aspose.BarCode.dll (25.4.0)

A nyilvános interfész az ügyfélinformációs mező dekódolásához, amelyet az ausztrálPost szimbólumban használnak.

public interface AustraliaPostCustomerInformationDecoder

Methods

Decode(A string)

Távolítsa el az ügyfélinformációs mezőt AusztráliaPost szimbólumából.Különböző adatok értelmezésére használható az NTable és a CTable kódolásból.Az adatokat egy sor sávértékként adjuk meg: 0, 1, 2 vagy 3.

string Decode(string customerInformationField)

Parameters

customerInformationField string

Az Ügyfélinformációs mező kódolva a nyers lapértékek sorozata: 0, 1, 2 vagy 3

Returns

string

A dekódolt ügyfélinformációs mező szál

Examples

Ez a mintázat azt mutatja, hogyan kell dekódolni az adatokat a AustraliaPostCustomerInformationDecoder interfészrel

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();
}
 Magyar