org.w3c.mwi.mobileok.basic
Class ClasspathURIResolver
java.lang.Object
org.w3c.mwi.mobileok.basic.ClasspathURIResolver
- All Implemented Interfaces:
- javax.xml.transform.URIResolver
public final class ClasspathURIResolver
- extends java.lang.Object
- implements javax.xml.transform.URIResolver
A URIResolver
which is aware of resources available from the
classpath, and not just from the file system or "real" URIs.
This resolver is required to be able to package in a single .JAR file
XSL stylesheets that reference other files, as is the case with some of
the XSL stylesheets used within the mobileOK Checker library.
The URI resolver should be set before applying any XSL stylesheet
using the Transformer.setURIResolver(URIResolver)
method.
- Version:
- $Revision: 1.1 $
- Author:
- The W3C mobileOK Checker Task Force
Method Summary |
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClasspathURIResolver
public ClasspathURIResolver()
resolve
public javax.xml.transform.Source resolve(java.lang.String href,
java.lang.String base)
throws javax.xml.transform.TransformerException
- Specified by:
resolve
in interface javax.xml.transform.URIResolver
- Throws:
javax.xml.transform.TransformerException