Java org.apache.commons.collections ExtendedProperties fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.collections ExtendedProperties fields, constructors, methods, implement or subclass

Introduction

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

The text is from its open source code.

Subclass

org.apache.commons.collections.ExtendedProperties has subclasses.
Click this link to see all its subclasses.

Constructor

ExtendedProperties()
Creates an empty extended properties object.
ExtendedProperties(String file)
Creates and loads the extended properties from the specified file.

Method

voidaddProperty(String key, Object value)
Add a property to the configuration.
voidcombine(ExtendedProperties props)
Combines an existing Hashtable with this Hashtable.
booleancontainsKey(Object key)
Tests if the specified object is a key in this hashtable.
ExtendedPropertiesconvertProperties(Properties props)
Convert a standard properties class into a configuration class.
Set>entrySet()
Returns a Set view of the mappings contained in this map.
Vget(Object key)
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
booleangetBoolean(String key, boolean defaultValue)
Get a boolean associated with the given configuration key.
BooleangetBoolean(String key, Boolean defaultValue)
Get a boolean associated with the given configuration key.
booleangetBoolean(String key)
Get a boolean associated with the given configuration key.
bytegetByte(String key)
Get a byte associated with the given configuration key.
doublegetDouble(String key)
Get a double associated with the given configuration key.
floatgetFloat(String key)
Get a float associated with the given configuration key.
intgetInt(String name, int def)
The purpose of this method is to get the configuration resource with the given name as an integer, or a default value.
intgetInt(String name)
The purpose of this method is to get the configuration resource with the given name as an integer.
IteratorgetKeys(String prefix)
Get the list of the keys contained in the configuration repository that match the specified prefix.
IteratorgetKeys()
Get the list of the keys contained in the configuration repository.
longgetLong(String key, long defaultValue)
Get a long associated with the given configuration key.
LonggetLong(String key, Long defaultValue)
Get a long associated with the given configuration key.
longgetLong(String key)
Get a long associated with the given configuration key.
ObjectgetProperty(String key)
Gets a property from the configuration.
shortgetShort(String key)
Get a short associated with the given configuration key.
StringgetString(String key)
Get a string associated with the given configuration key.
StringgetString(String key, String defaultValue)
Get a string associated with the given configuration key.
String[]getStringArray(String key)
Get an array of strings associated with the given configuration key.
VectorgetVector(String key)
Get a Vector of strings associated with the given configuration key.
booleanisEmpty()
Tests if this hashtable maps no keys to values.
Enumerationkeys()
Returns an enumeration of the keys in this hashtable.
SetkeySet()
Returns a Set view of the keys contained in this map.
voidload(InputStream input)
Load the properties from the given input stream.
voidload(InputStream input, String enc)
Load the properties from the given input stream and using the specified encoding.
Vput(K key, V value)
Maps the specified key to the specified value in this hashtable.
voidputAll(Map t)
Copies all of the mappings from the specified map to this hashtable.
voidsave(OutputStream output, String header)
Save the properties to the given output stream.
voidsetProperty(String key, Object value)
Set a property, this will replace any previously set values.
intsize()
Returns the number of keys in this hashtable.
ExtendedPropertiessubset(String prefix)
Create an ExtendedProperties object that is a subset of this one.