Beispiel #1
0
        protected override void ProcessFile(string inputFile)
        {
            WordCounter    processor  = new WordCounter(_result);
            TextDispatcher dispatcher = new TextDispatcher(inputFile, processor);

            dispatcher.Run();
        }
Beispiel #2
0
        protected override void ProcessFile(string inputFile)
        {
            string outputFile = BuildOutPath(_inOutOpt.OutputOptions.OutputDirectory, _inOutOpt.InputOptions.QueryDirectory, inputFile);

            TxtFileStreamProvider provider   = new TxtFileStreamProvider(inputFile, _batchOpt.ProcessOption.LineFeed);
            TextReplacer          processor  = new TextReplacer((new StreamWriter(outputFile, false)), _batchOpt.ProcessOption);
            TextDispatcher        dispatcher = new TextDispatcher(provider, processor);

            dispatcher.Run();
        }