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 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) |
boolean |
isValidFileName(String name) |
static void |
mkDir(File dir) |
static String |
normalizeCRLF(InputStream instream) |
static List<String> |
readLines(File file) |
static void |
removeDir(File d) |
public boolean isValidFileName(String name)
public static File getDefaultTempDir()
public static File createTmpDir()
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 © 2016 JBoss by Red Hat. All rights reserved.