public class TempFilesManager
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
TempFilesManager() |
Modifier and Type | Method and Description |
---|---|
static java.nio.file.Path |
changeTempFolder(java.lang.String folder) |
static java.nio.file.Path |
createTempDirectory(java.lang.String prefix)
Creates a new sub directory in the root temp folder and returns
the path to this new directory.
|
protected java.lang.String |
createTempName(java.lang.String prefix) |
static java.nio.file.Path |
getRootDirectory()
Returns the currently set root temp directory.
|
protected java.nio.file.Path |
getRootTempFolder() |
protected void |
initDefaultTempFolder() |
protected void |
initRoot(java.lang.String rootPath) |
protected java.lang.String |
nextGeneratedName() |
protected void |
setRootTempFolder(java.nio.file.Path rootTempFolder) |
public static java.nio.file.Path changeTempFolder(java.lang.String folder) throws java.io.IOException
java.io.IOException
public static java.nio.file.Path getRootDirectory()
public static java.nio.file.Path createTempDirectory(java.lang.String prefix) throws java.io.IOException
prefix
- The prefix to be prepended before the generated random name.java.io.IOException
- If the creation of the sub directory fails.protected void initDefaultTempFolder()
protected void initRoot(java.lang.String rootPath) throws java.io.IOException
java.io.IOException
protected java.lang.String createTempName(java.lang.String prefix)
protected java.lang.String nextGeneratedName()
protected java.nio.file.Path getRootTempFolder()
protected void setRootTempFolder(java.nio.file.Path rootTempFolder)