Package org.apache.batik.bridge
Class RhinoInterpreterFactory
- java.lang.Object
-
- org.apache.batik.bridge.RhinoInterpreterFactory
-
- All Implemented Interfaces:
InterpreterFactory
public class RhinoInterpreterFactory extends java.lang.Object implements InterpreterFactory
Allows to create instances ofRhinoInterpreter
class.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
RHINO_MIMETYPES
The MIME types that Rhino can handle.
-
Constructor Summary
Constructors Constructor Description RhinoInterpreterFactory()
Builds aRhinoInterpreterFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Interpreter
createInterpreter(java.net.URL documentURL, boolean svg12)
Creates an instance ofRhinoInterpreter
class.Interpreter
createInterpreter(java.net.URL documentURL, boolean svg12, ImportInfo imports)
Creates an instance ofRhinoInterpreter
class.java.lang.String[]
getMimeTypes()
Returns the mime-types to register this interpereter with.
-
-
-
Method Detail
-
getMimeTypes
public java.lang.String[] getMimeTypes()
Returns the mime-types to register this interpereter with.- Specified by:
getMimeTypes
in interfaceInterpreterFactory
-
createInterpreter
public Interpreter createInterpreter(java.net.URL documentURL, boolean svg12)
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
public Interpreter createInterpreter(java.net.URL documentURL, boolean svg12, ImportInfo imports)
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.
-
-