예제 #1
0
        public static EncodingProfile Get(EncodingType et)
        {
            EncodingProfile p = null;

            switch (et)
            {
            case EncodingType.ISO8859_1:
                p = new ISO8859_1Profile();
                break;

            case EncodingType.EUC_JP:
                p = new EUCJPProfile();
                break;

            case EncodingType.SHIFT_JIS:
                p = new ShiftJISProfile();
                break;

            case EncodingType.UTF8:
                p = new UTF8Profile();
                break;

            case EncodingType.UTF8_Latin:
                p = new UTF8_LatinProfile();
                break;

            case EncodingType.GB2312:
                p = new GB2312Profile();
                break;

            case EncodingType.BIG5:
                p = new Big5Profile();
                break;

            case EncodingType.EUC_CN:
                p = new EUCCNProfile();
                break;

            case EncodingType.EUC_KR:
                p = new EUCKRProfile();
                break;

            case EncodingType.OEM850:
                p = new OEM850Profile();
                break;

            case EncodingType.IBM437:
                p = new IBM437Profile();
                break;
            }
            return(p);
        }
예제 #2
0
 public static EncodingProfile Get(EncodingType et)
 {
     EncodingProfile p = null;
     switch (et) {
         case EncodingType.ISO8859_1:
             p = new ISO8859_1Profile();
             break;
         case EncodingType.EUC_JP:
             p = new EUCJPProfile();
             break;
         case EncodingType.SHIFT_JIS:
             p = new ShiftJISProfile();
             break;
         case EncodingType.UTF8:
             p = new UTF8Profile();
             break;
         case EncodingType.UTF8_Latin:
             p = new UTF8_LatinProfile();
             break;
         case EncodingType.GB2312:
             p = new GB2312Profile();
             break;
         case EncodingType.BIG5:
             p = new Big5Profile();
             break;
         case EncodingType.EUC_CN:
             p = new EUCCNProfile();
             break;
         case EncodingType.EUC_KR:
             p = new EUCKRProfile();
             break;
         case EncodingType.OEM850:
             p = new OEM850Profile();
             break;
     }
     return p;
 }