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