public final class StyleSheetCache extends java.lang.Object
This class is thread-safe and is intended to be shared between several
|Constructor and Description|
Constructs an empty stylesheet cache.
|Modifier and Type||Method and Description|
Clear this cache.
Returns a Transformer corresponding to specified XSL stylesheet.
public javax.xml.transform.Transformer newTransformer(java.net.URL styleSheetURL, Resolver resolver, Console console) throws java.lang.Exception
The first time specified XSL stylesheet is passed to the cache,
javax.xml.transform.Templates is created (that is,
the stylesheet is parsed, a possibly lengthy operation) and
cached in order to create more Transformers during subsequent
In order to create a
this cache first creates a
Extension functions are registered with this factory using
An URI resolver is registered then with this factory.
This cache implements a very crude change detection:
styleSheetURL- the URL of the XSL stylesheet for which a Transformer is to be created
resolver- allows to resolve URIs. May be
console- console on which error and debug messages are displayed. May be
java.lang.Exception- if, for any reason, this operation fails
public void clear(Console console)
console- console on which debug messages are displayed. May be