|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.ox.util.XSLT
public class XSLT
Method Summary | |
---|---|
void |
clearCache()
Clears the internal XSLT cache. |
static Templates |
getTemplates(File file)
Return the XSLT templates from the given style. |
static Templates |
getTemplates(URL url)
Return the XSLT templates from the given style. |
static Templates |
getTemplatesFromResource(String resource)
Return the XSLT templates from the given style. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Templates getTemplates(URL url) throws TransformerConfigurationException, IOException
url
- A URL to a template.
null
if the URL was null
.
TransformerConfigurationException
- If XSLT templates could not be loaded from the specified URL.
IOException
- If an IO error occur while reading the templatepublic static Templates getTemplates(File file) throws TransformerConfigurationException, IOException
file
- A file to a template.
null
if the URL was null
.
TransformerConfigurationException
- If XSLT templates could not be loaded from the specified URL.
IOException
- If an IO error occur while reading the templatepublic static Templates getTemplatesFromResource(String resource) throws TransformerConfigurationException, IOException
This method will firt try to load the resource using the class loader used for this class.
Use this class to load XSLT from the system.
resource
- The path to a resource.
null
if the resource could not be found.
TransformerConfigurationException
- If XSLT templates could not be loaded from the specified resource.
IOException
- If an IO error occur while reading the templatepublic void clearCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |