@ThreadSafe public final class ScriptEngineX extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
eval(File file,
ScriptEngine engine)
Same as engine.
|
static Object |
eval(String path,
ScriptEngine engine)
Same as engine.
|
public static Object eval(File file, ScriptEngine engine) throws IOException, ScriptException
file
- script file, encoded in UTF-8IOException
ScriptException
public static Object eval(String path, ScriptEngine engine) throws IOException, ScriptException
path
- to UTF-8 encoded script file
(without any shell variable, or tilde ~ in the path string)IOException
ScriptException