public class CommonsConfigUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_XML_SPACE |
static String |
ATTRIBUTE_XML_SPACE_PRESERVE |
Constructor and Description |
---|
CommonsConfigUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.configuration.HierarchicalConfiguration |
asHierarchicalConfiguration(org.apache.commons.configuration.XMLConfiguration xmlConfiguration) |
static void |
copyContent(org.apache.commons.configuration.XMLConfiguration src,
org.apache.commons.configuration.HierarchicalConfiguration dst)
Copies content from src to dst.
|
static Iterable<String> |
getKeys(org.apache.commons.configuration.PropertiesConfiguration config) |
static org.apache.commons.configuration.HierarchicalConfiguration |
newHierarchicalConfiguration() |
static void |
sanitiseAndSave(org.apache.commons.configuration.XMLConfiguration configuration,
Writer writer) |
public static final String ATTRIBUTE_XML_SPACE
public static final String ATTRIBUTE_XML_SPACE_PRESERVE
public static void sanitiseAndSave(@NotNull org.apache.commons.configuration.XMLConfiguration configuration, @NotNull Writer writer) throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public static void copyContent(org.apache.commons.configuration.XMLConfiguration src, org.apache.commons.configuration.HierarchicalConfiguration dst)
public static org.apache.commons.configuration.HierarchicalConfiguration newHierarchicalConfiguration()
public static org.apache.commons.configuration.HierarchicalConfiguration asHierarchicalConfiguration(org.apache.commons.configuration.XMLConfiguration xmlConfiguration)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.