| Modifier and Type | Field and Description |
|---|---|
| public static final String | JAVA_IO_TMPDIR
Define a constant for this property as it is sometimes mistypes as "tempdir" otherwise |
| private static TempFileCreationStrategy | strategy
The strategy used by |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static File | |
| public static File | Returns: The path to the newly created and empty temporary file.The prefix to be used to generate the name of the temporary file. prefix, String The suffix to be used to generate the name of the temporary file. suffix)Creates a new and empty temporary file. |
| public static void | setTempFileCreationStrategy(TempFileCreationStrategy
The new strategy to be used to create the temporary files. strategy)Configures the strategy used by |
| JAVA_IO_TMPDIR | back to summary |
|---|---|
| public static final String JAVA_IO_TMPDIR Define a constant for this property as it is sometimes mistypes as "tempdir" otherwise | |
| strategy | back to summary |
|---|---|
| private static TempFileCreationStrategy strategy The strategy used by | |
| TempFile | back to summary |
|---|---|
| private TempFile() | |
| createTempDirectory | back to summary |
|---|---|
| public static File createTempDirectory(String name) throws IOException | |
| createTempFile | back to summary |
|---|---|
| public static File createTempFile(String prefix, String suffix) throws IOException Creates a new and empty temporary file. By default, files are collected into one directory and are not
deleted on exit from the VM, although they can be deleted by defining the system property
Don't forget to close all files or it might not be possible to delete them.
| |
| setTempFileCreationStrategy | back to summary |
|---|---|
| public static void setTempFileCreationStrategy(TempFileCreationStrategy strategy) Configures the strategy used by
| |