Class RhinoInterpreterFactory

java.lang.Object
org.apache.batik.bridge.RhinoInterpreterFactory
All Implemented Interfaces:
InterpreterFactory

public class RhinoInterpreterFactory extends Object implements InterpreterFactory
Allows to create instances of RhinoInterpreter class.
  • Field Details

    • RHINO_MIMETYPES

      public static final String[] RHINO_MIMETYPES
      The MIME types that Rhino can handle.
  • Constructor Details

    • RhinoInterpreterFactory

      public RhinoInterpreterFactory()
      Builds a RhinoInterpreterFactory.
  • Method Details

    • getMimeTypes

      public String[] getMimeTypes()
      Returns the mime-types to register this interpereter with.
      Specified by:
      getMimeTypes in interface InterpreterFactory
    • createInterpreter

      public Interpreter createInterpreter(URL documentURL, boolean svg12)
      Creates an instance of RhinoInterpreter class.
      Specified by:
      createInterpreter in interface InterpreterFactory
      Parameters:
      documentURL - the url for the document which will be scripted
      svg12 - whether the document is an SVG 1.2 document
    • createInterpreter

      public Interpreter createInterpreter(URL documentURL, boolean svg12, ImportInfo imports)
      Creates an instance of RhinoInterpreter class.
      Specified by:
      createInterpreter in interface InterpreterFactory
      Parameters:
      documentURL - the url for the document which will be scripted
      svg12 - whether the document is an SVG 1.2 document
      imports - The set of classes/packages to import (if the interpreter supports that), may be null.