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 File |
getDefaultTempDir() |
static List<File> |
getFiles(File dir,
String pattern) |
static List<File> |
getFiles(File dir,
String pattern,
File exclude) |
static List<File> |
getFilesRecurse(File dir,
String pattern) |
static List<File> |
getFilesRecurse(File dir,
String pattern,
File exclude) |
static String |
getStringFromFile(File location) |
static boolean |
isValidFileName(String name) |
static void |
maybeDeleteDefaultTempDir() |
static void |
mkDir(File dir) |
static String |
normalizeCRLF(InputStream instream) |
static List<String> |
readLines(File file) |
static void |
removeDir(File d) |
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 String normalizeCRLF(InputStream instream)
Copyright © 2017 JBoss by Red Hat. All rights reserved.