Package org.daisy.dotify.common.xml
Class CachingURIResolver
- java.lang.Object
-
- org.daisy.dotify.common.xml.CachingURIResolver
-
- All Implemented Interfaces:
URIResolver
public class CachingURIResolver extends Object implements URIResolver
-
-
Constructor Summary
Constructors Constructor Description CachingURIResolver()
Creates a new uri resolver.CachingURIResolver(SAXParserFactory parserFactory)
Creates a new uri resolver with the specified sax parser factory.
-
-
-
Constructor Detail
-
CachingURIResolver
public CachingURIResolver() throws XMLToolsException
Creates a new uri resolver.- Throws:
XMLToolsException
- if something goes wrong
-
CachingURIResolver
public CachingURIResolver(SAXParserFactory parserFactory) throws XMLToolsException
Creates a new uri resolver with the specified sax parser factory.- Parameters:
parserFactory
- the parser factory- Throws:
XMLToolsException
- if something goes wrong
-
-
Method Detail
-
resolve
public Source resolve(String href, String base) throws TransformerException
- Specified by:
resolve
in interfaceURIResolver
- Throws:
TransformerException
-
-