|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.bastille.xml.XMLHelper
public final class XMLHelper
Utility class providing useful functions for content generators.
Should not be public.
Field Summary | |
---|---|
static String |
CACHE_NAME
Name of the cache. |
Method Summary | |
---|---|
static Cache |
initCache()
Initialises the cache. |
static String |
load(File file,
ContentRequest req,
Logger logger)
Loads the specified XML file and returns it as a string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CACHE_NAME
Method Detail |
---|
public static Cache initCache()
public static String load(File file, ContentRequest req, Logger logger) throws IOException
file
- The file to loadreq
- The content request to display the file in case of error.logger
- To log info on the correct logger.
IOException
- If an error occurs while trying to read or write the XML.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |