
public class JythonScriptExecutorUtils extends Object
| Constructor and Description |
|---|
JythonScriptExecutorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
executeScript(InputStream is)
Execute in memory the provided script.
|
static void |
executeScript(InputStream is,
OutputStream out)
Execute in memory the provided script.
|
static void |
executeScript(String scriptPath)
Execute in memory the provided script.
|
static void |
executeScript(String scriptPath,
OutputStream out)
Execute in memory the provided script.
|
static InputStream |
getScriptInputStream(String script)
Get the InputStream for the provided script path.
|
static void |
main(String[] args) |
public static InputStream getScriptInputStream(String script) throws FileNotFoundException
script - FileNotFoundExceptionpublic static void executeScript(String scriptPath) throws IOException
scriptPath - the path of the script to execute.IOExceptionpublic static void executeScript(String scriptPath, OutputStream out) throws IOException
scriptPath - the path of the script to execute.out - The output stream for the script output.IOExceptionpublic static void executeScript(InputStream is) throws IOException
is - The Script's InputStream.IOExceptionpublic static void executeScript(InputStream is, OutputStream out) throws IOException
is - The Script's InputStream.out - The output stream for the script output.IOExceptionCopyright © 2016 LSST. All rights reserved.