|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.calitha.xml.XSLTemplatesCache
public class XSLTemplatesCache
A XSLTemplatesCache object is used to cache the templates created from XSL files.
Templates can be used to create Transformer objects used to transform a Document.
| Constructor Summary | |
|---|---|
XSLTemplatesCache()
Creates a new cache. |
|
| Method Summary | |
|---|---|
void |
add(File file)
Adds an XSL file to the cache. |
void |
add(URL url)
Adds an XSL file, indicated by an URI, to the cache. |
boolean |
contains(File file)
Determines if this cache contains templates associated with this file. |
boolean |
contains(URL url)
Determines if this cache contains templates associated with this URL. |
Templates |
getTemplates(File file)
Gets templates for the XSL file object. |
Templates |
getTemplates(URL url)
Gets templates for the XSL at the URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XSLTemplatesCache()
| Method Detail |
|---|
public boolean contains(File file)
file - XSL file
IllegalArgumentException - if any argument is nullpublic boolean contains(URL url)
url - url of the XSLT
IllegalArgumentException - if any argument is null
public void add(File file)
throws IOException,
TransformerConfigurationException
file - XSL file
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error occurs.
IllegalArgumentException - if any argument is null
public void add(URL url)
throws IOException,
TransformerConfigurationException
url - url of the XSL file
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error occurs.
IllegalArgumentException - if any argument is null
public Templates getTemplates(File file)
throws IOException,
TransformerConfigurationException
The templates will be cached if the file was not added yet.
file - XSL file
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error occurs.
IllegalArgumentException - if any argument is null
public Templates getTemplates(URL url)
throws IOException,
TransformerConfigurationException
The templates will be cached if the URL was not added yet.
url - XSL file, indicated by a URL
IOException - if an I/O error occurs
TransformerConfigurationException - if a serious configuration error occurs.
IllegalArgumentException - if any argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||