public class FileUtils
extends java.lang.Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.Class> |
parseClassesFromJar(java.io.File file)
Gets a list of classes from a jar file
|
static java.util.List<java.lang.String> |
readAll(java.io.File file)
Simple method to read all the contents of a file
|
static void |
safeWrite(java.io.File file,
java.lang.String string)
Simple method to write to a file
|
static void |
unzip(java.io.File file,
java.io.File toDirectory)
Unzips a given file to the set directory
|
public static void safeWrite(java.io.File file,
java.lang.String string)
throws java.io.IOException
file - File to write tostring - String to writejava.io.IOExceptionpublic static java.util.List<java.lang.String> readAll(java.io.File file)
throws java.io.IOException
file - File to readjava.io.IOExceptionpublic static void unzip(java.io.File file,
java.io.File toDirectory)
throws java.io.IOException
file - The file to unziptoDirectory - The directory to unzip tojava.io.IOExceptionpublic static java.util.List<java.lang.Class> parseClassesFromJar(java.io.File file)
throws java.io.IOException,
java.lang.ClassNotFoundException
file - The jar filejava.io.IOExceptionjava.lang.ClassNotFoundException