public class FileHandler
extends java.lang.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 java.lang.Boolean |
canExecute(java.io.File file) |
static void |
copy(java.io.File from,
java.io.File to) |
static void |
copy(java.io.File source,
java.io.File dest,
java.lang.String suffix) |
static void |
copyResource(java.io.File outputDir,
java.lang.Class<?> forClassLoader,
java.lang.String... names) |
static boolean |
createDir(java.io.File dir) |
static boolean |
delete(java.io.File toDelete) |
static boolean |
isZipped(java.lang.String fileName) |
static boolean |
makeExecutable(java.io.File file) |
static boolean |
makeWritable(java.io.File file) |
static java.lang.String |
readAsString(java.io.File toRead) |
static java.io.File |
unzip(java.io.InputStream resource) |
public static java.io.File unzip(java.io.InputStream resource) throws java.io.IOException
java.io.IOException
public static void copyResource(java.io.File outputDir, java.lang.Class<?> forClassLoader, java.lang.String... names) throws java.io.IOException
java.io.IOException
public static boolean createDir(java.io.File dir) throws java.io.IOException
java.io.IOException
public static boolean makeWritable(java.io.File file) throws java.io.IOException
java.io.IOException
public static boolean makeExecutable(java.io.File file) throws java.io.IOException
java.io.IOException
public static java.lang.Boolean canExecute(java.io.File file)
public static boolean isZipped(java.lang.String fileName)
public static boolean delete(java.io.File toDelete)
public static void copy(java.io.File from, java.io.File to) throws java.io.IOException
java.io.IOException
public static void copy(java.io.File source, java.io.File dest, java.lang.String suffix) throws java.io.IOException
java.io.IOException
public static java.lang.String readAsString(java.io.File toRead) throws java.io.IOException
java.io.IOException