org.apache.batik.refimpl.bridge
Class URIResolver
java.lang.Object
|
+--org.apache.batik.refimpl.bridge.URIResolver
- public class URIResolver
- extends java.lang.Object
This class is used to resolve the URI that can be found in a SVG document.
Method Summary |
Element |
getElement(java.lang.String uri)
Imports the element referenced by the given URI. |
Node |
getNode(java.lang.String uri)
Returns the node referenced by the given URI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
document
protected SVGOMDocument document
- The reference document.
documentURI
protected java.lang.String documentURI
- The document URI.
documentLoader
protected DocumentLoader documentLoader
- The document loader.
URIResolver
public URIResolver(SVGDocument doc,
DocumentLoader dl)
- Creates a new URI resolver object.
- Parameters:
doc
- The reference document.dl
- The document loader.
getElement
public Element getElement(java.lang.String uri)
throws java.net.MalformedURLException,
SAXException,
java.lang.InterruptedException
- Imports the element referenced by the given URI.
- Parameters:
uri
- The element URI.
getNode
public Node getNode(java.lang.String uri)
throws java.net.MalformedURLException,
SAXException,
java.lang.InterruptedException
- Returns the node referenced by the given URI.
- Returns:
- The document or the element
Copyright © 2000 Apache Software Foundation. All Rights Reserved.