public class SimpleStylesheetCache extends java.lang.Object implements StylesheetCache
StylesheetCache that simply caches all stylesheets
in a HashMap.
This is used internally by SnuggleEngine and certain extensions. It might also
be useful in other very simple situations.
| 构造器和说明 |
|---|
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.
|
java.lang.String |
toString() |
public javax.xml.transform.Templates getStylesheet(java.lang.String key)
StylesheetCache
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.
getStylesheet 在接口中 StylesheetCachepublic void putStylesheet(java.lang.String key,
javax.xml.transform.Templates stylesheet)
StylesheetCacheImplementations can safely choose to do absolutely nothing here if they want.
putStylesheet 在接口中 StylesheetCachepublic java.lang.String toString()
toString 在类中 java.lang.Object