public Element rootFromFile(File file) throws JDOMException, IOException {
  if (log.isDebugEnabled()) {
    log.debug("reading xml from file: " + file.getPath());
  }
  FileInputStream fs=new FileInputStream(file);
  try {
    return getRoot(verify,fs);
  }
  finally {
    fs.close();
  }
}

public Element rootFromFile ( File file ) throws JDOMException , IOException { if ( log . isDebugEnabled ( ) ) { log . debug ( "reading xml from file: " + file . getPath ( ) ) ; } FileInputStream fs = new FileInputStream ( file ) ; try { return getRoot ( verify , fs ) ; } finally { fs . close ( ) ; } }
read a file as xml , and return the root object . exceptions are only thrown when local recovery is impossible .
