1 package org.feistymeow.utility;
4 import java.io.IOException;
6 import org.apache.commons.logging.Log;
7 import org.apache.commons.logging.LogFactory;
24 static private Log _logger = LogFactory.getLog(
Extemporizer.class);
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);
static File createTempDirectory(String prefix, String suffix)