Class ArchiveEngine

java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
org.eclipse.ease.AbstractScriptEngine
org.eclipse.ease.lang.scriptarchive.ArchiveEngine
All Implemented Interfaces:
Comparable, org.eclipse.core.runtime.IAdaptable, IScriptEngine

public class ArchiveEngine
extends AbstractScriptEngine
implements IScriptEngine
  • Constructor Details

    • ArchiveEngine

      public ArchiveEngine()
  • Method Details

    • getArchiveStream

      public static InputStream getArchiveStream​(Object archive, String filename)
      Get a file from an archive as an input stream. As the stream is returned directly, it needs to be closed by the calling method.
      Parameters:
      archive - archive source: file, stream or uri
      filename - name of file within archive to look for
      Returns:
      InputStream or null
    • getManifest

      public static Properties getManifest​(Object archive)
    • registerJar

      public void registerJar​(URL url)
      Description copied from interface: IScriptEngine
      Register a jar file and add it to the classpath. After registering, classes within the jar file shall be usable within the script.
      Specified by:
      registerJar in interface IScriptEngine
      Parameters:
      url - url to load jar file from
    • terminateCurrent

      public void terminateCurrent()
      Description copied from interface: IScriptEngine
      Stops the currently executed piece of code. Will continue to execute the next scheduled piece of code.
      Specified by:
      terminateCurrent in interface IScriptEngine