public class FileHandler extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
FileHandler.Filter
Used by file operations to determine whether or not to make use of a file.
|
| 构造器和说明 |
|---|
FileHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Boolean |
canExecute(File file) |
static void |
copy(File from,
File to) |
static void |
copy(File source,
File dest,
String suffix) |
static void |
copyResource(File outputDir,
Class<?> forClassLoader,
String... names) |
static boolean |
createDir(File dir) |
static boolean |
delete(File toDelete) |
static boolean |
isZipped(String fileName) |
static boolean |
makeExecutable(File file) |
static boolean |
makeWritable(File file) |
static String |
readAsString(File toRead) |
static File |
unzip(InputStream resource) |
public static File unzip(InputStream resource) throws IOException
IOExceptionpublic static void copyResource(File outputDir, Class<?> forClassLoader, String... names) throws IOException
IOExceptionpublic static boolean createDir(File dir) throws IOException
IOExceptionpublic static boolean makeWritable(File file) throws IOException
IOExceptionpublic static boolean makeExecutable(File file) throws IOException
IOExceptionpublic static boolean isZipped(String fileName)
public static boolean delete(File toDelete)
public static void copy(File from, File to) throws IOException
IOExceptionpublic static void copy(File source, File dest, String suffix) throws IOException
IOExceptionpublic static String readAsString(File toRead) throws IOException
IOException