public class TempFileManager
extends java.lang.Object
Constructor and Description |
---|
TempFileManager() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String suffix) |
static void |
deleteFiles(java.io.File parent,
boolean incParent)
deletes files recursively.
|
public static java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix) throws java.io.IOException
java.io.IOException
public static void deleteFiles(java.io.File parent, boolean incParent) throws java.io.FileNotFoundException
parent
- file to delete. If this is a directory then any children are deleted.incParent
- boolean that determines if the parent file is also deleted.java.io.FileNotFoundException