|
||||||||||
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 java.io.InputStream |
getConfigFile(java.lang.String fileName)
Deprecated. since 4.0 - use getTokenizedConfigFile |
static java.lang.String |
getTokenizedConfigFile(java.lang.String fileName)
|
static java.lang.String |
replaceTokens(java.io.InputStream stream)
Deprecated. since 4.0 - use getTokenizedConfigFile |
static java.lang.String |
replaceTokens(java.lang.String config)
Replace tokens in a string. |
static org.w3c.dom.Document |
string2DOM(java.lang.String xml)
Deprecated. since 4.0 - not used |
static org.w3c.dom.Document |
string2DOM(java.lang.String xml,
java.util.Map<java.lang.String,java.lang.String> dtds)
Uses a map to find dtds in the resources. |
static org.jdom.Document |
string2JDOM(java.lang.String xml)
Convert the string to a JDOM Document. |
static org.jdom.Document |
string2JDOM(java.lang.String xml,
java.util.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 java.lang.String getTokenizedConfigFile(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static java.io.InputStream getConfigFile(java.lang.String fileName)
fileName
-
public static java.lang.String replaceTokens(java.io.InputStream stream) throws java.io.IOException
java.io.IOException
public static java.lang.String replaceTokens(java.lang.String config) throws java.io.IOException
config
-
java.io.IOException
public static org.w3c.dom.Document string2DOM(java.lang.String xml) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static org.jdom.Document string2JDOM(java.lang.String xml) throws org.jdom.JDOMException, java.io.IOException
org.jdom.JDOMException
java.io.IOException
public static org.jdom.Document string2JDOM(java.lang.String xml, java.util.Map dtds) throws org.jdom.JDOMException, java.io.IOException
org.jdom.JDOMException
java.io.IOException
public static org.w3c.dom.Document string2DOM(java.lang.String xml, java.util.Map<java.lang.String,java.lang.String> dtds) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
xml
- dtds
-
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |