code: public InputStream getInput(File file) throws FileNotFoundException {
        return file != null ? getInput(file.getPath()) : null;
     }
docs: Opens an InputStream for reading from the given file.
  @param file the file to open for reading
  @return an InputStream for reading from the file
  @throws FileNotFoundException if the file does not exist or is a directory