Package org.apache.batik.bridge
Class RhinoInterpreterFactory
java.lang.Object
org.apache.batik.bridge.RhinoInterpreterFactory
- All Implemented Interfaces:
InterpreterFactory
Allows to create instances of
RhinoInterpreter
class.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInterpreter
(URL documentURL, boolean svg12) Creates an instance ofRhinoInterpreter
class.createInterpreter
(URL documentURL, boolean svg12, ImportInfo imports) Creates an instance ofRhinoInterpreter
class.String[]
Returns the mime-types to register this interpereter with.
-
Field Details
-
RHINO_MIMETYPES
The MIME types that Rhino can handle.
-
-
Constructor Details
-
RhinoInterpreterFactory
public RhinoInterpreterFactory()Builds aRhinoInterpreterFactory
.
-
-
Method Details
-
getMimeTypes
Returns the mime-types to register this interpereter with.- Specified by:
getMimeTypes
in interfaceInterpreterFactory
-
createInterpreter
Creates an instance ofRhinoInterpreter
class.- Specified by:
createInterpreter
in interfaceInterpreterFactory
- Parameters:
documentURL
- the url for the document which will be scriptedsvg12
- whether the document is an SVG 1.2 document
-
createInterpreter
Creates an instance ofRhinoInterpreter
class.- Specified by:
createInterpreter
in interfaceInterpreterFactory
- Parameters:
documentURL
- the url for the document which will be scriptedsvg12
- whether the document is an SVG 1.2 documentimports
- The set of classes/packages to import (if the interpreter supports that), may be null.
-