jd.xml.util.resolver
Class ConvertingResolver
java.lang.Object
jd.xml.util.DefaultUriResolver
jd.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertingResolver
public ConvertingResolver(String uriPrefix)
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