jd.xml.util.resolver
Class ResolverChain

java.lang.Object
  extended byjd.xml.util.resolver.ResolverChain
All Implemented Interfaces:
UriResolver

public class ResolverChain
extends Object
implements UriResolver

A UriResolver which chains to other UriResolvers.


Constructor Summary
ResolverChain(UriResolver r1, UriResolver r2)
           
 
Method Summary
 XmlSource resolveUri(String href, String baseUri)
          Resolve a uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolverChain

public ResolverChain(UriResolver r1,
                     UriResolver r2)
Method Detail

resolveUri

public XmlSource resolveUri(String href,
                            String baseUri)
                     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.
baseUri - 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.