|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.TempDirectoryUtil
public class TempDirectoryUtil
This util class was added to be able to create a "temporary" directory.
Constructor Summary | |
---|---|
TempDirectoryUtil()
|
Method Summary | |
---|---|
static File |
createTempDirectory(String prefix)
Creates an empty directory in the default temporary-file directory, using the given prefix and suffix to generate its name. |
static String |
getSystemTempDir()
Returns the system's temp directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TempDirectoryUtil()
Method Detail |
---|
public static File createTempDirectory(String prefix)
Note: these directories will get deleted when the JVM exits.
prefix
- The prefix string to be used in generating the directory's name.
File
object denoting a newly-created empty directorypublic static String getSystemTempDir()
Be aware that some operating systems place a trailing slash and others don't.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |