public class FileUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileUtils.DeleteRecursively |
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(URL fromUrl,
File toFile) |
static File |
createTempDir(String prefix) |
static boolean |
deleteRecursively(File fileOrDir) |
static void |
execDeleteRecursively(int numAttempts,
int millisBetweenAttempts,
File fileOrDir)
Spawns a separate process that will delete the specified file or directory.
|
static void |
scheduleRecursiveDeleteAfterShutdown(File fileOrDir)
On some platforms, a file cannot be deleted while it is in use.
|
public static File createTempDir(String prefix) throws IOException
IOException
public static void scheduleRecursiveDeleteAfterShutdown(File fileOrDir)
public static void execDeleteRecursively(int numAttempts, int millisBetweenAttempts, File fileOrDir) throws IOException
IOException
public static boolean deleteRecursively(File fileOrDir)
public static void copy(URL fromUrl, File toFile) throws IOException
IOException
Copyright © 2013 Metron, Inc.. All rights reserved.