|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.scripting.ScriptUtils
public class ScriptUtils
A helper class for Script related stuff.
| Constructor Summary | |
|---|---|
ScriptUtils()
|
|
| Method Summary | |
|---|---|
static void |
copy(File sourceLocation,
File targetLocation)
Copies the file/directory (recursively). |
static String |
load(File file)
Tries to load the file and return its content. |
static void |
move(File sourceLocation,
File targetLocation)
Moves the file/directory (recursively). |
static boolean |
save(File file,
String content)
Saves the content to a file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptUtils()
| Method Detail |
|---|
public static void copy(File sourceLocation,
File targetLocation)
throws IOException
sourceLocation - the source file/dirtargetLocation - the target file/dir
IOException - if copying fails
public static void move(File sourceLocation,
File targetLocation)
throws IOException
sourceLocation - the source file/dirtargetLocation - the target file/dir
IOException - if moving fails
public static boolean save(File file,
String content)
file - the file to save tocontent - the content to save
public static String load(File file)
file - the file to open
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||