public class TempPath
extends java.lang.Object
| Constructor and Description |
|---|
TempPath() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearTemporaryFolder(java.nio.file.Path tmp)
Clear up all the content from below the given directory.
|
static java.lang.String |
get()
Return the temporary root folder as string
|
static java.nio.file.Path |
get(java.lang.String directory)
Return the path to the temporary directory with the extension name
|
static java.io.File |
getTempFile(java.lang.String file)
Return a new file
|
static java.io.File |
getTempFile(java.lang.String directory,
java.lang.String file)
Return a new file from the directory
|
static java.lang.String |
getTempString(java.lang.String file)
Return a new temp file as string
|
static java.lang.String |
getTempString(java.lang.String directory,
java.lang.String file)
Return a new file from the directory
|
public static java.lang.String get()
public static java.nio.file.Path get(java.lang.String directory)
throws java.io.IOException
directory - below the tmp rootjava.io.IOException - in case of fire.public static java.io.File getTempFile(java.lang.String directory,
java.lang.String file)
throws java.io.IOException
directory - below the tmp rootfile - name of the filejava.io.IOException - in case of fire.public static java.io.File getTempFile(java.lang.String file)
file - name of the filepublic static java.lang.String getTempString(java.lang.String file)
file - name of the filepublic static java.lang.String getTempString(java.lang.String directory,
java.lang.String file)
throws java.io.IOException
directory - below the tmp rootfile - name of the filejava.io.IOException - in case of fire.public static void clearTemporaryFolder(java.nio.file.Path tmp)
throws java.lang.Exception
tmp - the temporary filejava.lang.Exception - in case of fire.