com.exln.stylus.io
Class StylusFileFactory.ResolverWrapper
java.lang.Object
com.exln.stylus.io.StylusFileFactory.ResolverWrapper
- All Implemented Interfaces:
- URIResolver
- Enclosing class:
- StylusFileFactory
- public static class StylusFileFactory.ResolverWrapper
- extends Object
- implements URIResolver
Wraps the singleton StylusFileFactory object in a class which can
be instantiated with a constructor. StylusFileFactory implements URIResolver,
however it is a singleton class with no public constructor. In an environment where
the URIResolver is identified by passing a class name rather than an instance,
this class can be used. It has a public constructor which returns a tiny object
which references the singleton StylusFileFactory
Method Summary |
Source |
resolve(String uri,
String URIBase)
Implements the URIResolver interface by passing the call on to the
singleton StylusFileFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StylusFileFactory.ResolverWrapper
public StylusFileFactory.ResolverWrapper()
- Default constructor returns an object which references the singleton StylusFileFactory.
resolve
public Source resolve(String uri,
String URIBase)
throws TransformerException
- Implements the URIResolver interface by passing the call on to the
singleton StylusFileFactory.
- Specified by:
resolve
in interface URIResolver
- Parameters:
uri
- The URI to be resolved.URIBase
- The base URI in effect when the URI was encountered.
- Returns:
- A Source object which can be used to read the URI data, or null if
the scheme: is not registered.
- Throws:
TransformerException
- If the URI is malformed.