|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.util.FileHelper
public class FileHelper
Utility that provides some general methods for working with File objects.
| Method Summary | |
|---|---|
static void |
copyFile(java.io.File srcFile,
java.io.File destFile)
Copy file. |
static org.xml.sax.InputSource |
createInputSource(java.io.File file)
|
static boolean |
deleteDirectory(java.io.File directory)
Recursively deletes the given directory |
static void |
deleteDirectory(java.io.File directory,
boolean failOnError)
Recursively deletes the given directory |
static java.util.List |
readLines(java.io.File theFile)
Get a list of Strings from a given file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void deleteDirectory(java.io.File directory,
boolean failOnError)
directory - The directory to deletefailOnError - If an exception should be thrown in case the deletion did not work.public static boolean deleteDirectory(java.io.File directory)
directory - The directory to delete
true if the deletion was successfully.
public static org.xml.sax.InputSource createInputSource(java.io.File file)
throws java.net.MalformedURLException
java.net.MalformedURLException
public static void copyFile(java.io.File srcFile,
java.io.File destFile)
throws java.io.IOException
srcFile - the src filedestFile - the dest file
java.io.IOException
public static java.util.List readLines(java.io.File theFile)
throws java.io.IOException
theFile - the file to be read
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||