public class FileConfigurator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileConfigurator.SAXConfigurationException |
Modifier and Type | Field and Description |
---|---|
protected static com.google.common.collect.ImmutableSet<String> |
VALID_SUBTREE_TAG
These XML nodes can have subtrees of configurations.
|
Constructor and Description |
---|
FileConfigurator() |
Modifier and Type | Method and Description |
---|---|
static String |
formatBuffer(ConfigurationBuffer cfgbuf,
String rootElement) |
static String |
formatBuffer(ConfigurationBuffer cfgbuf,
String rootElement,
LocalizationManager lmgr,
String prefix) |
static void |
load(ConfigurationBuffer buffer,
IFileSpecification fileSpec,
String context,
String rootElement,
boolean ignoreUnknownItems)
Load configuration XML file into a
ConfigurationBuffer object. |
protected static final com.google.common.collect.ImmutableSet<String> VALID_SUBTREE_TAG
public static void load(ConfigurationBuffer buffer, IFileSpecification fileSpec, String context, String rootElement, boolean ignoreUnknownItems) throws ConfigurationException
ConfigurationBuffer
object.buffer
- result ConfigurationBuffer
object.fileSpec
- configuration XML file.context
- path context used for resolving relative paths in the
configuration options.rootElement
- expected root element of the XML DOM tree.ignoreUnknownItems
- if false, unknown option will cause exception.ConfigurationException
- error.public static String formatBuffer(ConfigurationBuffer cfgbuf, String rootElement, LocalizationManager lmgr, String prefix)
public static String formatBuffer(ConfigurationBuffer cfgbuf, String rootElement)
Copyright © 2016 The Apache Software Foundation. All rights reserved.