code: public static CompilationUnit parse(File file, String encoding) throws ParseException, IOException {
          FileInputStream in = new FileInputStream(file);
          try {
              return parse(in, encoding);
          } finally {
              in.close();
          }
      }
docs: Parses the Java code contained in a {@link File} and returns a
  {@link CompilationUnit} that represents it.
  
  @param file
  {@link File} containing Java source code
  @param encoding
  encoding of the source code
  @return CompilationUnit representing the Java source code
  @throws ParseException
  if the source code has parser errors
  @throws IOException