public class ArchiveEngine extends AbstractScriptEngine implements IScriptEngine
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITINGTRACE_SCRIPT_ENGINE| Constructor and Description |
|---|
ArchiveEngine() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.InputStream |
getArchiveStream(java.lang.Object archive,
java.lang.String filename)
Get a file from an archive as an input stream.
|
static java.util.Properties |
getManifest(java.lang.Object archive) |
void |
registerJar(java.net.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, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setOutputStream, setVariable, terminateaddJobChangeListener, 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, yieldRulegetAdapterequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddExecutionListener, addSecurityCheck, executeAsync, executeSync, getDescription, getErrorStream, getExecutedFile, getInputStream, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariable, terminategetAdapterpublic static java.io.InputStream getArchiveStream(java.lang.Object archive,
java.lang.String filename)
archive - archive source: file, stream or urifilename - name of file within archive to look forInputStream or nullpublic static java.util.Properties getManifest(java.lang.Object archive)
public void registerJar(java.net.URL url)
IScriptEngineregisterJar in interface IScriptEngineurl - url to load jar file frompublic void terminateCurrent()
IScriptEngineterminateCurrent in interface IScriptEngine