Class ResourceResolverWrappingURIResolver

java.lang.Object
net.sf.saxon.lib.ResourceResolverWrappingURIResolver
All Implemented Interfaces:
ResourceResolver

public class ResourceResolverWrappingURIResolver extends Object implements ResourceResolver
A ResourceResolver implemented by wrapping a supplied URIResolver
  • Constructor Details

  • Method Details

    • resolve

      public Source resolve(ResourceRequest request) throws XPathException
      Process a resource request to deliver a resource
      Specified by:
      resolve in interface ResourceResolver
      Parameters:
      request - the resource request
      Returns:
      the returned Source; or null to delegate resolution to another resolver
      Throws:
      XPathException - if the request is invalid in some way, or if the identified resource is unsuitable, or if resolution is to fail rather than being delegated to another resolver.
    • convertToStreamSource

      public static StreamSource convertToStreamSource(SAXSource resolved)
      Convert SAXSource to StreamSource. The XML Reader is ignored, since we're concerned here with non-XML resources.
      Parameters:
      resolved - the SAXSource to be converted
      Returns:
      an equivalent StreamSource, ignoring any XML Reader.
    • getWrappedURIResolver

      public URIResolver getWrappedURIResolver()