public final class FileUtils extends Object
Modifier and Type | Method and Description |
---|---|
static File |
createTempFile(String prefix,
String suffix) |
static File |
createTempFile(String prefix,
String suffix,
File parentDir,
boolean deleteOnExit) |
static File |
createTmpDir() |
static File |
createTmpDir(boolean addHook) |
static void |
delete(File f) |
static void |
delete(File f,
boolean inShutdown) |
static boolean |
exists(File file) |
static File |
getDefaultTempDir() |
static List<File> |
getFiles(File dir,
String pattern) |
static List<File> |
getFilesRecurseUsingSuffix(File dir,
String suffix) |
static List<File> |
getFilesUsingSuffix(File dir,
String suffix) |
static boolean |
isValidFileName(String name) |
static void |
maybeDeleteDefaultTempDir() |
static void |
mkDir(File dir) |
static List<String> |
readLines(File file) |
static void |
removeDir(File d) |
static String |
stripPath(String name)
Strips any leading paths
|
public static boolean isValidFileName(String name)
public static File getDefaultTempDir()
public static void maybeDeleteDefaultTempDir()
public static File createTmpDir()
public static File createTmpDir(boolean addHook)
public static void mkDir(File dir)
public static void removeDir(File d)
public static void delete(File f)
public static void delete(File f, boolean inShutdown)
public static File createTempFile(String prefix, String suffix) throws IOException
IOException
public static File createTempFile(String prefix, String suffix, File parentDir, boolean deleteOnExit) throws IOException
IOException
public static List<File> getFilesRecurseUsingSuffix(File dir, String suffix)
public static boolean exists(File file)
Apache CXF