jd.xml.util.resolver
Class ConvertingResolver

java.lang.Object
  extended byjd.xml.util.DefaultUriResolver
      extended byjd.xml.util.resolver.ConvertingResolver
All Implemented Interfaces:
UriResolver
Direct Known Subclasses:
Text2XmlResolver

public abstract class ConvertingResolver
extends DefaultUriResolver

A base class for UriResolvers which read the requested data, convert it, and return a stream to the converted data.


Field Summary
 
Fields inherited from class jd.xml.util.DefaultUriResolver
INSTANCE
 
Constructor Summary
ConvertingResolver(String uriPrefix)
           
 
Method Summary
protected abstract  XmlSource resolve(String uri, BufferedReader in)
           
 XmlSource resolveUri(String href, String baseUri)
          Try to build a new uri from the href and baseUri parameter and open a InputStream from a file or an url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertingResolver

public ConvertingResolver(String uriPrefix)
Method Detail

resolveUri

public XmlSource resolveUri(String href,
                            String baseUri)
                     throws IOException
Description copied from class: DefaultUriResolver
Try to build a new uri from the href and baseUri parameter and open a InputStream from a file or an url.

Specified by:
resolveUri in interface UriResolver
Overrides:
resolveUri in class DefaultUriResolver
Throws:
IOException

resolve

protected abstract XmlSource resolve(String uri,
                                     BufferedReader in)
                              throws IOException
Throws:
IOException