BufferedReader in = null; try { in = new BufferedReader(new FileReader(f)); importReader(name, in, delim); } finally { if (in != null) { try { in.close(); } catch (IOException ex) { LOG.warn("Could not close file " + f.getAbsolutePath(), ex); } } }
importFile(name, f, delim, SimpleImportFilter.INSTANCE);
  public void importFile(String name, File f, String delim)  throws IOException  {    BufferedReader in = null;    try {      in = new BufferedReader(new FileReader(f));      importReader(name, in, delim);    } finally {      if (in != null) {        try {          in.close();        } catch (IOException ex) {          LOG.warn("Could not close file " + f.getAbsolutePath(), ex);        }      }    }  }