code: public static InputStream fromFile(File file) throws FileNotFoundException {
  		if(file != null && file.isFile() && file.canRead()) {
  			return new FileInputStream(file);
  		}
  		return null;
  	}
docs: Returns an input stream from a {@code File} object.
  
  @param file
  a {@code File} object representing the input file; the file must be
  existing and readable.
  @return
  a {@code FileInputStream} object.
  @throws FileNotFoundException