jd.xml.xslt.trax
Class UriResolverAdapter

java.lang.Object
  extended byjd.xml.xslt.trax.UriResolverAdapter
All Implemented Interfaces:
UriResolver

public class UriResolverAdapter
extends Object
implements UriResolver

Another glorious moment of object-orientation.


Constructor Summary
UriResolverAdapter(URIResolver traxUriResolver)
           
 
Method Summary
 URIResolver getTraxResolver()
           
 XmlSource resolveUri(String href, String base)
          Resolve a uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriResolverAdapter

public UriResolverAdapter(URIResolver traxUriResolver)
Method Detail

resolveUri

public XmlSource resolveUri(String href,
                            String base)
                     throws IOException
Description copied from interface: UriResolver
Resolve a uri.

Specified by:
resolveUri in interface UriResolver
Parameters:
href - a href attribute, which may be relative or absolute.
base - the base uri in effect when the href attribute was encountered
Returns:
a XmlSource object, or null if the href cannot be resolved, and the caller should try to resolve the URI in some other way.
Throws:
IOException - if an error occurs when trying to resolve the URI.

getTraxResolver

public URIResolver getTraxResolver()