public class ArchiveEngine extends AbstractScriptEngine implements IScriptEngine
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
TRACE_SCRIPT_ENGINE
Constructor and Description |
---|
ArchiveEngine() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
getArchiveStream(Object archive,
String filename)
Get a file from an archive as an input stream.
|
static Properties |
getManifest(Object archive) |
String |
getSaveVariableName(String name)
Return a save name to be used for a variable.
|
void |
registerJar(URL url)
Register a jar file and add it to the classpath.
|
void |
terminateCurrent()
Stops the currently executed piece of code.
|
addExecutionListener, addSecurityCheck, executeAsync, executeSync, extractArguments, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getOutputStream, getStackTrace, getTerminateOnIdle, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, isIdle, join, removeExecutionListener, removeSecurityCheck, removeVariable, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setInputStream, setOutputStream, setTerminateOnIdle, setVariable, terminate
addJobChangeListener, belongsTo, cancel, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
getAdapter
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addExecutionListener, addSecurityCheck, executeAsync, executeSync, getDescription, getErrorStream, getExecutedFile, getInputStream, getName, getOutputStream, getTerminateOnIdle, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, isIdle, join, removeExecutionListener, removeSecurityCheck, removeVariable, schedule, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setInputStream, setOutputStream, setTerminateOnIdle, setVariable, terminate
getAdapter
public static InputStream getArchiveStream(Object archive, String filename)
archive
- archive source: file, stream or urifilename
- name of file within archive to look forInputStream
or null
public static Properties getManifest(Object archive)
public void registerJar(URL url)
IScriptEngine
registerJar
in interface IScriptEngine
url
- url to load jar file frompublic void terminateCurrent()
IScriptEngine
terminateCurrent
in interface IScriptEngine
public String getSaveVariableName(String name)
IScriptEngine
getSaveVariableName
in interface IScriptEngine
name
- variable name candidate