org.glite.security.util
Class CaseInsensitiveProperties

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.glite.security.util.CaseInsensitiveProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class CaseInsensitiveProperties
extends java.util.Properties

See Also:
Serialized Form

Constructor Summary
CaseInsensitiveProperties()
           
CaseInsensitiveProperties(java.util.Properties defaults)
          Creates a new instance of CaseInsensitiveProperties
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
 void load(java.io.InputStream inputStream)
          Loads the properties from the stream inputStream.
 void loadProperties(java.util.Properties inProperties)
          Loads the properties from inProperties into this instance.
 java.lang.Object remove(java.lang.Object keyObj)
           
 java.lang.Object setProperty(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class java.util.Properties
list, list, propertyNames, save, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CaseInsensitiveProperties

public CaseInsensitiveProperties(java.util.Properties defaults)
Creates a new instance of CaseInsensitiveProperties


CaseInsensitiveProperties

public CaseInsensitiveProperties()
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)

setProperty

public java.lang.Object setProperty(java.lang.String key,
                                    java.lang.String value)

load

public void load(java.io.InputStream inputStream)
          throws java.io.IOException
Loads the properties from the stream inputStream.

Throws:
java.io.IOException

loadProperties

public void loadProperties(java.util.Properties inProperties)
Loads the properties from inProperties into this instance. The defaults from inProperties are loaded first and the non-default properties are set after that. Thus default setting (Key1=value1) is overridden with non-default setting (key1=value2).


remove

public java.lang.Object remove(java.lang.Object keyObj)
                        throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException