|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--audiojury.proxy.PluginUtil
Contains a number of helper methods that carry out common file operations.
ProjectStoragePlugin,
ResultPlugin| Method Summary | |
static void |
copyFiles(java.io.File src,
java.io.File dest)
Copies a source file or directory to another destination. |
static boolean |
deleteDir(java.io.File dir)
Recursively deletes a directory. |
static boolean |
existsFile(java.lang.String path_and_file)
Checks if a certain file exists. |
static java.io.File[] |
listDirectory(java.lang.String dir_path)
Lists the contents of a directory. |
static java.lang.Object |
readObject(java.lang.String path_and_file)
Reads an object from file. |
static void |
saveToTextFile(java.lang.String path_and_file,
java.lang.String data)
Saves a text string to a file. |
static void |
writeObject(java.lang.String path_and_file,
java.lang.Object object)
Writes an object to file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void saveToTextFile(java.lang.String path_and_file,
java.lang.String data)
throws java.io.IOException
path_and_file - The complete path to the output file.data - The string to write.
java.io.IOException - if there was an unhandled IO error during the operation.public static boolean existsFile(java.lang.String path_and_file)
path_and_file - Full path and filename of the file to check.
public static java.io.File[] listDirectory(java.lang.String dir_path)
dir_path - Path to a directory to list.
public static java.lang.Object readObject(java.lang.String path_and_file)
throws java.io.IOException,
java.lang.ClassNotFoundException
path_and_file - Full path and filename to the serialized object.
java.io.IOException - if there was an unhandled IO error during the operation.
java.lang.ClassNotFoundException - if the class of a serialized object cannot be found.
public static void writeObject(java.lang.String path_and_file,
java.lang.Object object)
throws java.io.IOException
path_and_file - Full path and filename where to save the object.object - An object to serialize.
java.io.IOException - if there was an unhandled IO error during the operation.public static boolean deleteDir(java.io.File dir)
dir - The directory to delete.
public static void copyFiles(java.io.File src,
java.io.File dest)
throws java.io.IOException
src - The file or directory to copy.dest - The destination directory.
java.io.IOException - if there was an unhandled IO error during the operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||