public class FileHandler extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
FileHandler.Filter
Used by file operations to determine whether or not to make use of a file.
|
Constructor and Description |
---|
FileHandler() |
Modifier and Type | Method and Description |
---|---|
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
IOException
public static void copyResource(File outputDir, Class<?> forClassLoader, String... names) throws IOException
IOException
public static boolean createDir(File dir) throws IOException
IOException
public static boolean makeWritable(File file) throws IOException
IOException
public static boolean makeExecutable(File file) throws IOException
IOException
public static boolean isZipped(String fileName)
public static boolean delete(File toDelete)
public static void copy(File from, File to) throws IOException
IOException
public static void copy(File source, File dest, String suffix) throws IOException
IOException
public static String readAsString(File toRead) throws IOException
IOException
Copyright © 2014. All rights reserved.