public class ScriptUtil extends Object
| Constructor and Description |
|---|
ScriptUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getScriptFromFile(File file)
Return the content of the resource located at the given file.
|
static String |
getScriptFromURL(URL url)
Return the content of the resource at the given URL.
|
public static String getScriptFromFile(File file) throws IOException
file - the file to read.IOExceptionpublic static String getScriptFromURL(URL url) throws IOException
url - the url to read.IOExceptionCopyright © 2017. All Rights Reserved.