code: static public EditsVisitor getEditsVisitor(String filename,
      String processor,
      Tokenizer tokenizer,
      boolean printToScreen) throws IOException {
  
      if(processor.toLowerCase().equals("xml")) {
        return new XmlEditsVisitor(filename, tokenizer, printToScreen);
      } else if(processor.toLowerCase().equals("stats")) {
        return new StatisticsEditsVisitor(filename, tokenizer, printToScreen);
      } else if(processor.toLowerCase().equals("binary")) {
        return new BinaryEditsVisitor(filename, tokenizer, printToScreen);
      } else {
        throw new IOException("Unknown proccesor " + processor +
          " (valid processors: xml, binary, stats)");
      }
    }
docs: Factory function that creates an EditsVisitor object
  
  @param filename output filename
  @param tokenizer input tokenizer
  @return EditsVisitor for appropriate output format (binary, XML etc.)