Interface AustraliaPostCustomerInformationDecoder

Interface AustraliaPostCustomerInformationDecoder

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)

Avustralya Postası sembolojisinde kullanılan Müşteri Bilgileri Alanı kod çözümü için genel arayüz. Uygulama kullanıcı tarafından sağlanmalıdır.

public interface AustraliaPostCustomerInformationDecoder

Yöntemler

Decode(string)

Avustralya Postası sembolojisinden Müşteri Bilgileri Alanını kod çözer.
NTable ve CTable kodlamasından farklı veri yorumlamaları için kullanılabilir.
Veri, ham çubuk değerleri olarak bir satır olarak sağlanır: 0, 1, 2 veya 3.

string Decode(string customerInformationField)

Parametreler

customerInformationField string

Ham çubuk değerleri olarak kodlanmış Müşteri Bilgileri Alanı: 0, 1, 2 veya 3

Dönüş Değeri

string

kod çözülmüş Müşteri Bilgileri Alanı dizesi

Örnekler

Bu örnek, AustraliaPostCustomerInformationDecoder arayüzü ile verilerin nasıl kod çözüleceğini göstermektedir.

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();
}
 Türkçe