public interface StylesheetCache
A SnuggleEngine creates a default implementation of this that caches stylesheets
over the lifetime of the SnuggleEngine Object, which is reasonable. If you want
to change this, create your own implementation and attach it to your SnuggleEngine.
You can use the SimpleStylesheetCache in your own applications if you want to.
StylesheetManager instance to do this safely.)SimpleStylesheetCache| 限定符和类型 | 方法和说明 |
|---|---|
javax.xml.transform.Templates |
getStylesheet(java.lang.String key)
Tries to retrieve an XSLT stylesheet from the cache having the given key.
|
void |
putStylesheet(java.lang.String key,
javax.xml.transform.Templates stylesheet)
Instructs the cache that it might want to store the given XSLT stylesheet corresponding
to the given key.
|
javax.xml.transform.Templates getStylesheet(java.lang.String key)
Return a previously cached Templates or null if your cache doesn't want to cache
this or if it does not contain the required result.
void putStylesheet(java.lang.String key,
javax.xml.transform.Templates stylesheet)
Implementations can safely choose to do absolutely nothing here if they want.