org.apache.batik.bridge
Class URIResolver

java.lang.Object
  |
  +--org.apache.batik.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.


Field Summary
protected  SVGOMDocument document
          The reference document.
protected  DocumentLoader documentLoader
          The document loader.
protected  java.lang.String documentURI
          The document URI.
 
Constructor Summary
URIResolver(SVGDocument doc, DocumentLoader dl)
          Creates a new URI resolver object.
 
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
 

Field Detail

document

protected SVGOMDocument document
The reference document.

documentURI

protected java.lang.String documentURI
The document URI.

documentLoader

protected DocumentLoader documentLoader
The document loader.
Constructor Detail

URIResolver

public URIResolver(SVGDocument doc,
                   DocumentLoader dl)
Creates a new URI resolver object.
Parameters:
doc - The reference document.
dl - The document loader.
Method Detail

getElement

public Element getElement(java.lang.String uri)
                   throws java.net.MalformedURLException,
                          java.io.IOException
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,
                    java.io.IOException
Returns the node referenced by the given URI.
Returns:
The document or the element


Copyright © 2001 Apache Software Foundation. All Rights Reserved.