|
||||||||||
| 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(java.io.File sourceLocation,
java.io.File targetLocation)
Copies the file/directory (recursively). |
static java.lang.String |
load(java.io.File file)
Tries to load the file and return its content. |
static void |
move(java.io.File sourceLocation,
java.io.File targetLocation)
Moves the file/directory (recursively). |
static boolean |
save(java.io.File file,
java.lang.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(java.io.File sourceLocation,
java.io.File targetLocation)
throws java.io.IOException
sourceLocation - the source file/dirtargetLocation - the target file/dir
java.io.IOException - if copying fails
public static void move(java.io.File sourceLocation,
java.io.File targetLocation)
throws java.io.IOException
sourceLocation - the source file/dirtargetLocation - the target file/dir
java.io.IOException - if moving fails
public static boolean save(java.io.File file,
java.lang.String content)
file - the file to save tocontent - the content to save
public static java.lang.String load(java.io.File file)
file - the file to open
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||