35 if ((prefix ==
null) || (suffix ==
null))
38 final File temp = File.createTempFile(prefix, suffix);
40 throw new IOException(
"failed to delete temporary file: " + temp.getAbsolutePath());
42 throw new IOException(
"failed to create temporary directory: "
43 + temp.getAbsolutePath());
46 }
catch (Throwable cause) {
47 _logger.error(
"caught exception while creating temporary directory", cause);