public class ConfigUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConfigUtil.MapDTDEntityResolver
EntityResolver using a Map to resources.
|
Constructor and Description |
---|
ConfigUtil() |
Modifier and Type | Method and Description |
---|---|
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
|
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
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
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.