public class XSLTCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
XSLTCache.MapEntry
Holds a value in the XSLT cache map.
|
Modifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.lang.String,XSLTCache.MapEntry> |
cache
Maps XSLT file names to MapEntry instances.
|
Modifier | Constructor and Description |
---|---|
protected |
XSLTCache()
Allowed overrides but not instantiation.
|
Modifier and Type | Method and Description |
---|---|
static void |
flush(java.lang.String xsltFileName)
Flush a specific cached stylesheet from memory.
|
static void |
flushAll()
Flush all cached stylesheets from memory, emptying the cache.
|
static javax.xml.transform.Transformer |
newTransformer(java.lang.String xsltFileName)
Obtain a new Transformer instance for the specified XSLT file name.
|
protected static java.util.Map<java.lang.String,XSLTCache.MapEntry> cache
public static void flushAll()
public static void flush(java.lang.String xsltFileName)
xsltFileName
- File name of XSLT stylesheet to remove.public static javax.xml.transform.Transformer newTransformer(java.lang.String xsltFileName) throws javax.xml.transform.TransformerConfigurationException
A new entry will be added to the cache if this is the first request for the specified file name.
xsltFileName
- the file name of an XSLT stylesheet.javax.xml.transform.TransformerConfigurationException