public class FileUtils
extends java.lang.Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
getTempFile(java.io.File sourceFile)
Creates a .tmp file with a unique file name from the source
file.
|
static void |
rename(java.io.File from,
java.io.File to)
Safely Renames a file.
|
public static java.io.File getTempFile(java.io.File sourceFile)
throws java.io.IOException
sourceFile - - temp file created from thisjava.io.IOExceptionpublic static void rename(java.io.File from,
java.io.File to)
throws java.io.IOException
from - to - java.io.IOException