public interface TemporaryDirectory
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
static TemporaryDirectory |
fixed(java.io.File directory)
Creates a new temporary directory that uses a fixed directory.
|
java.io.File |
getDirectory()
Obtains the directory, only useful for tests.
|
java.io.File |
newFile()
Creates a new file in the directory.
|
static TemporaryDirectory |
newSystemTemporaryDirectory()
Creates a new temporary directory in the system's temporary directory.
|
java.io.File newFile()
throws java.io.IOException
java.io.IOExceptionjava.io.File getDirectory()
static TemporaryDirectory newSystemTemporaryDirectory() throws java.io.IOException
java.io.IOExceptionstatic TemporaryDirectory fixed(java.io.File directory)
directory - the directory that will be returned; this directory won't be deleted when the
TemporaryDirectory objects are closedTemporaryDirectory that will create files in directory