|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.javasoft.io.FileUtils
public class FileUtils
Usefull file utilities.
| Constructor Summary | |
|---|---|
FileUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
copy(java.io.File source,
java.io.File destination,
boolean recursive,
boolean replaceAll,
boolean move,
FileOperationListener listener)
Copy a file or directory to the specified destination. |
static boolean |
copy(java.io.File source,
java.io.File destination,
boolean preserveTimestamp,
boolean move,
FileOperationListener listener)
Copy a single file to the specified destination. |
static boolean |
delete(java.io.File file,
boolean recursive,
FileOperationListener listener)
Copy a single file to the specified destination. |
static boolean |
determineProperties(FileProperties props,
java.io.File file,
boolean recursive,
FileOperationListener listener)
Determine file properties of the specified file or directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtils()
| Method Detail |
|---|
public static boolean delete(java.io.File file,
boolean recursive,
FileOperationListener listener)
file - File or folder to delete.recursive - True to delete recursive.listener - A single listener for this file operation.
public static boolean copy(java.io.File source,
java.io.File destination,
boolean preserveTimestamp,
boolean move,
FileOperationListener listener)
throws java.io.FileNotFoundException,
java.io.IOException
source - Source file.destination - Destination file.preserveTimestamp - Set last modified timestamp of destination file to lastModified timestamp of source file.move - Delete source file after copy.listener - A single listener for this file operation.
java.io.FileNotFoundException
java.io.IOException
public static boolean copy(java.io.File source,
java.io.File destination,
boolean recursive,
boolean replaceAll,
boolean move,
FileOperationListener listener)
throws java.io.IOException
source - Source file.destination - Destination file.recursive - Deep copy in case source is directory.replaceAll - True - replace all existing files; false - replace only older files.move - Delete source file after copy.listener - A single listener for this file operation.
java.io.IOException
public static boolean determineProperties(FileProperties props,
java.io.File file,
boolean recursive,
FileOperationListener listener)
throws java.io.IOException
props - Target properties object.file - Source filerecursive - Can be set in case file is directory.listener - A single listener for this file operation.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||