Modifier and Type | Method and Description |
---|---|
static void |
copyFile(File srcFile,
File destFile)
Copy file.
|
static InputSource |
createInputSource(File file) |
static boolean |
deleteDirectory(File directory)
Recursively deletes the given directory
|
static void |
deleteDirectory(File directory,
boolean failOnError)
Recursively deletes the given directory
|
static List |
readLines(File theFile)
Get a list of Strings from a given file.
|
public static void deleteDirectory(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(File directory)
directory
- The directory to deletetrue
if the deletion was successfully.public static InputSource createInputSource(File file) throws MalformedURLException
MalformedURLException
public static void copyFile(File srcFile, File destFile) throws IOException
srcFile
- the src filedestFile
- the dest fileIOException
public static List readLines(File theFile) throws IOException
theFile
- the file to be readIOException
Copyright © 2002–2015. All rights reserved.