Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

Le nom : Aspose.BarCode.BarCodeRecognition Assemblée: Aspose.BarCode.dll (25.4.0)

Interfaccia pubblica per la decodificazione del campo di informazione del cliente che viene utilizzata nella simbologia AustraliaPost.

public interface AustraliaPostCustomerInformationDecoder

Methods

Decode(Le string)

Decodare il campo di informazione del cliente da AustraliaPost simbolologia.Può essere utilizzato per diverse interpretazioni dei dati da NTable e CTable codifica.I dati sono forniti come una serie di valori di bar: 0, 1, 2 o 3.

string Decode(string customerInformationField)

Parameters

customerInformationField string

Il campo di informazione del cliente codificato come sequenza di valori di barre crude: 0, 1, 2 o 3

Returns

string

Il campo di informazione del cliente decodito

Examples

Questo campione mostra come decodere i dati con AustraliaPostCustomerInformationDecoder interfaccia

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();
}
 Français