public static void RunPipeline(IInputReader reader, ILogProcessor processor, IOutputWriter writer, bool writeHeader) { processor.SetWriter(writer); if (writeHeader) { processor.WriteHeader(); } while (!reader.NoMoreLines()) { processor.ReadLine(reader.ReadLine()); } processor.Done(); }