|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.javascriptzip.JavaScriptZipHelper
public final class JavaScriptZipHelper
This class contains helper methods to JavaScriptZip
| Method Summary | |
|---|---|
static java.lang.String |
fileLengthDisplay(java.io.File file)
Returns a display size of the file length |
static boolean |
isScript(java.io.File file)
Returns if the specified file is a script (ends with .js) |
static java.io.File[] |
listScripts(java.io.File directory)
Lists the scripts on the specified directory |
static java.lang.String |
prepareParameter(java.lang.String parameter)
Prepares a parameter to pass to JavaScriptZip |
static java.lang.String |
readFile(java.io.File file)
Reads the file to a String |
static void |
writeFile(java.io.File file,
java.lang.String contents)
Writes a String to a file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String fileLengthDisplay(java.io.File file)
file - The file
public static boolean isScript(java.io.File file)
file - The file
public static java.io.File[] listScripts(java.io.File directory)
throws java.io.IOException
directory - The directory
java.io.IOException - Error reading the directorypublic static java.lang.String prepareParameter(java.lang.String parameter)
parameter - The parameter value
public static java.lang.String readFile(java.io.File file)
throws java.io.IOException
file - The file
java.io.IOException - Error reading the file
public static void writeFile(java.io.File file,
java.lang.String contents)
throws java.io.IOException
file - The filecontents - The file contents
java.io.IOException - Error writing the file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||