code: public void setTemporaryDirectory(File dir) throws IOException {
  		if (dir != null) {
  			if (!dir.exists() || !dir.isDirectory())
  				if (!dir.mkdirs())
  					throw new IOException("Unable to create temporary directory: " + dir.getAbsolutePath());
  		}
  		tempDir = dir;
  	}
docs: Set the directory into which create temporary files.