code: public static File createTempFile(byte[] fileContents, String namePrefix, String extension) throws IOException {
  		Preconditions.checkNotNull(fileContents, "file contents missing");
  		File tempFile = File.createTempFile(namePrefix, extension);
  		try (FileOutputStream fos = new FileOutputStream(tempFile)) {
  			fos.write(fileContents);
  		}
  		return tempFile;
  	}
docs: Stores the given contents into a temporary file
  @param fileContents the raw contents to store in the temporary file
  @param namePrefix the desired file name prefix (must be at least 3 characters long)
  @param extension the desired extension including the '.' character (use null for '.tmp')
  @return a {@link File} reference to the newly created temporary file
  @throws IOException if the temporary file creation fails