Java org.apache.commons.configuration XMLConfiguration fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.configuration XMLConfiguration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.configuration XMLConfiguration.

The text is from its open source code.

Subclass

org.apache.commons.configuration.XMLConfiguration has subclasses.
Click this link to see all its subclasses.

Constructor

XMLConfiguration(HierarchicalConfiguration c)
Creates a new instance of XMLConfiguration and copies the content of the passed in configuration into this object.
XMLConfiguration(String fileName)
Creates a new instance of XMLConfiguration.
XMLConfiguration(File file)
Creates a new instance of XMLConfiguration.
XMLConfiguration(URL url)
Creates a new instance of XMLConfiguration.
XMLConfiguration()
Creates a new instance of XMLConfiguration.

Method

voidaddNodes(String key, Collection nodes)
Adds a collection of nodes directly to this configuration.
voidclear()
Removes all properties from this configuration.
voidclearProperty(String key)
voidclearTree(String key)
Objectclone()
Creates a copy of this object.
booleancontainsKey(String key)
StringgetBasePath()
DocumentgetDocument()
Returns the XML document this configuration was loaded from.
FilegetFile()
StringgetFileName()
IteratorgetKeys()
IteratorgetKeys(String prefix)
ObjectgetProperty(String key)
ReloadingStrategygetReloadingStrategy()
StringgetRootElementName()
Returns the name of the root element.
URLgetURL()
booleanisEmpty()
voidload(InputStream in)
Loads the configuration from the given input stream.
voidload(Reader in)
Load the configuration from the given reader.
voidload(InputSource source)
Loads a configuration file from the specified input source.
voidload()
voidregisterEntityId(String publicId, URL entityURL)

Registers the specified DTD URL for the specified public identifier.

voidsave(Writer writer)
Saves the configuration to the specified writer.
voidsave()
voidsave(OutputStream out, String encoding)
voidsetAttributeSplittingDisabled(boolean attributeSplittingDisabled)

Sets a flag whether attribute splitting is disabled.

voidsetAutoSave(boolean autoSave)
voidsetBasePath(String basePath)
voidsetDocumentBuilder(DocumentBuilder documentBuilder)
Sets the DocumentBuilder object to be used for loading documents.
voidsetEncoding(String encoding)
voidsetFile(File file)
voidsetFileName(String fileName)
voidsetProperty(String key, Object value)
voidsetReloadingStrategy(ReloadingStrategy strategy)
voidsetRootElementName(String name)
Sets the name of the root element.
voidsetURL(URL url)
voidsetValidating(boolean validating)
Sets the value of the validating flag.