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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

PropertiesConfiguration(String fileName)
Creates and loads the extended properties from the specified file.
PropertiesConfiguration(File file)
Creates and loads the extended properties from the specified file.
PropertiesConfiguration(URL url)
Creates and loads the extended properties from the specified URL.
PropertiesConfiguration()
Creates an empty PropertyConfiguration object which can be used to synthesize a new Properties file by adding values and then saving().

Method

voidaddProperty(String key, Object value)
Adds a new property to this configuration.
voidclearProperty(String key)
booleancontainsKey(String key)
StringgetBasePath()
Return the base path.
FilegetFile()
Return the file where the configuration is stored.
StringgetFileName()
Return the name of the file.
StringgetHeader()
Return the comment header.
IteratorgetKeys()
Returns an Iterator with the keys contained in this configuration.
PropertiesConfigurationLayoutgetLayout()
Returns the associated layout object.
StringgetPath()
Returns the full path to the file this configuration is based on.
ObjectgetProperty(String key)
URLgetURL()
Return the URL where the configuration is stored.
booleanisEmpty()
voidload()
Load the configuration from the underlying location.
voidload(Reader in)
Load the properties from the given reader.
voidload(InputStream in, String encoding)
Load the configuration from the specified stream, using the specified encoding.
voidreload()
Performs a reload operation if necessary.
voidsave(Writer writer)
Save the configuration to the specified stream.
voidsave()
Save the configuration.
voidsave(OutputStream out, String encoding)
Save the configuration to the specified stream, using the specified encoding.
voidsetAutoSave(boolean autoSave)
voidsetBasePath(String basePath)
Extend the setBasePath method to turn includes on and off based on the existence of a base path.
voidsetEncoding(String encoding)
voidsetFile(File file)
Set the file where the configuration is stored.
voidsetFileName(String fileName)
Set the name of the file.
voidsetHeader(String header)
Set the comment header.
voidsetPath(String path)
Sets the location of this configuration as a full or relative path name.
voidsetProperty(String key, Object value)
Sets a new value for the specified property.
voidsetReloadingStrategy(ReloadingStrategy strategy)
voidsetURL(URL url)
Set the location of this configuration as a URL.
StringtoString()
Returns a string representation of the object.