jd.xml.xslt.trax
Class UriResolverAdapter
java.lang.Object
jd.xml.xslt.trax.UriResolverAdapter
- All Implemented Interfaces:
- UriResolver
- public class UriResolverAdapter
- extends Object
- implements UriResolver
Another glorious moment of object-orientation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UriResolverAdapter
public UriResolverAdapter(URIResolver traxUriResolver)
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()