org.vectomatic.dom.svg.impl
Class SVGParserImpl
java.lang.Object
org.vectomatic.dom.svg.impl.SVGParserImpl
- Direct Known Subclasses:
- SVGParserImplIE, SVGParserImplMozilla, SVGParserImplOpera, SVGParserImplWebkit
public class SVGParserImpl
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SVGParserImpl
public SVGParserImpl()
parseFromString
public final com.google.gwt.dom.client.Document parseFromString(String rawText,
String contentType)
parse
public SVGSVGElement parse(String rawSvg,
boolean enableScripts)
throws ParserException
- Parses the supplied SVG text into a document
- Parameters:
rawSvg
- raw xml to be parsedenableScripts
- true to enable embedded scripts, false otherwise
- Returns:
- the document resulting from the parse
- Throws:
ParserException
enableScriptElements
protected static SVGSVGElement enableScriptElements(SVGSVGElement svg)
- Re-enables scripts disabled by the DOMParser.parseFromString method.
- Parameters:
svg
- The svg for which scripts are to be re-enabled.
- Returns:
- The svg with re-enabled scripts.
Copyright © 2012. All Rights Reserved.