public FileListener(Printer printer,File inputFile,ConstructLengths constructLengths,Set<Rules> enabledRules) throws IOException {
  this.printer=printer;
  this.inputFile=inputFile;
  this.constructLengths=constructLengths;
  this.reader=new LineNumberReader(Files.newBufferedReader(inputFile.toPath()));
  this.enabledRules=enabledRules;
}

public FileListener ( Printer printer , File inputFile , ConstructLengths constructLengths , Set < Rules > enabledRules ) throws IOException { this . printer = printer ; this . inputFile = inputFile ; this . constructLengths = constructLengths ; this . reader = new LineNumberReader ( Files . newBufferedReader ( inputFile . toPath ( ) ) ) ; this . enabledRules = enabledRules ; }
constructs a file listener with the specified printer , input file , and max lengths restrictions .
