|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.xml.XSLTUtils
public final class XSLTUtils
A utility class to help with XSLT operations.
Method Summary | |
---|---|
void |
clearCache()
Clears the internal XSLT cache. |
static Templates |
getTemplates(URL url)
Return the XSLT templates from the given style. |
static Templates |
getTemplates(URL url,
boolean cache)
Return the XSLT templates from the given style. |
static Templates |
getTemplatesFromResource(String resource)
Return the XSLT templates from the given style. |
static Templates |
getTemplatesFromResource(String resource,
boolean cache)
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 BerliozException
url
- A URL to a template.
null
if the URL was null
.
BerliozException
- If XSLT templates could not be loaded from the specified URL.public static Templates getTemplates(URL url, boolean cache) throws BerliozException
url
- A URL to a template.cache
- true
to load and store from the cache or not;
false
to force load from the URL and clear the cache entry for this URL.
null
if the URL was null
.
BerliozException
- If XSLT templates could not be loaded from the specified URL.public static Templates getTemplatesFromResource(String resource) throws BerliozException
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.
BerliozException
- If the loading fails.public static Templates getTemplatesFromResource(String resource, boolean cache) throws BerliozException
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.cache
- true
to load and store from the cache or not;
false
to load from the URL and clear the cache entry for this resource.
null
if the resource could not be found.
BerliozException
- If the loading fails.public void clearCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |