|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.ConfigUtil
public class ConfigUtil
Util used to process config files.
Nested Class Summary | |
---|---|
static class |
ConfigUtil.MapDTDEntityResolver
EntityResolver using a Map to resources. |
Constructor Summary | |
---|---|
ConfigUtil()
|
Method Summary | |
---|---|
static InputStream |
getConfigFile(String fileName)
Deprecated. since 4.0 - use getTokenizedConfigFile |
static String |
getTokenizedConfigFile(String fileName)
|
static String |
replaceTokens(InputStream stream)
Deprecated. since 4.0 - use getTokenizedConfigFile |
static String |
replaceTokens(String config)
Replace tokens in a string. |
static Document |
string2DOM(String xml)
Deprecated. since 4.0 - not used |
static Document |
string2DOM(String xml,
Map<String,String> dtds)
Uses a map to find dtds in the resources. |
static org.jdom.Document |
string2JDOM(String xml)
Convert the string to a JDOM Document. |
static org.jdom.Document |
string2JDOM(String xml,
Map dtds)
Deprecated. since 4.0 - not used |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigUtil()
Method Detail |
---|
public static String getTokenizedConfigFile(String fileName) throws IOException
IOException
public static InputStream getConfigFile(String fileName)
public static String replaceTokens(InputStream stream) throws IOException
IOException
public static String replaceTokens(String config) throws IOException
IOException
public static Document string2DOM(String xml) throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
SAXException
IOException
public static org.jdom.Document string2JDOM(String xml) throws org.jdom.JDOMException, IOException
org.jdom.JDOMException
IOException
public static org.jdom.Document string2JDOM(String xml, Map dtds) throws org.jdom.JDOMException, IOException
org.jdom.JDOMException
IOException
public static Document string2DOM(String xml, Map<String,String> dtds) throws ParserConfigurationException, SAXException, IOException
ParserConfigurationException
SAXException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |