code: public static OutputStream toFile(File file) throws FileNotFoundException {
  		if(file != null) {
  			return new FileOutputStream(file);
  		}
  		return null;
  	}
docs: Returns an output stream corresponding to the given file.
  
  @param file
  a non-null {@code File} object.
  @return
  a {@code FileOutputStrea} to the given file, or {@code null} if the file
  is not valid.
  @throws FileNotFoundException