예제 #1
0
        public ParserManager()
        {
            //每增加一个parser,就在这里添加,最后一个不加“|”,否者会多出一个空的后缀名
            TxtParser   tp = new TxtParser();
            WordParser  wp = new WordParser();
            ExcelParser ep = new ExcelParser();

            supportedFileTypies += tp.supportedFileTypies + "|";
            supportedFileTypies += wp.supportedFileTypies + "|";
            supportedFileTypies += ep.supportedFileTypies;
        }
예제 #2
0
        public void ParseAll()
        {
            TxtParser tp = new TxtParser();

            tp.Parse();
            WordParser wp = new WordParser();

            wp.Parse();
            ExcelParser ep = new ExcelParser();

            ep.Parse();
        }