jade.util.leap
Class Properties

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--jade.util.leap.Properties

public class Properties
extends java.util.Properties
implements Serializable

Environment dependent implementation of the Properties class. The J2SE and PJAVA implementation simply extend java.util.Properties. The MIDP implementation allows getting properties from the .jad file of the midlet or from a properly formatted RecordStore (see the load() and store methods.

Author:
Steffen Rusitschka - Siemens AG, Marc Schlichte - Siemens AG, Nicolas Lhuillier - Motorola, Giovanni Caire - TILAB
See Also:
Serialized Form

Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
Properties()
           
 
Method Summary
 java.lang.Object clone()
           
 void load(java.lang.String storage)
          Load a set of key-value pairs from a given storage element.
 void store(java.lang.String storage)
          Store the set of key-value pairs held by this Properties object into a given storage element.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Properties

public Properties()
Method Detail

load

public void load(java.lang.String storage)
          throws java.io.IOException
Load a set of key-value pairs from a given storage element. All key-value pairs previously included in this Properties object will be lost. The storage element is environment-dependent: In a J2SE or PJAVA environment it is a file named storage. In a MIDP environment it can be the JAD of the MIDlet (if storage = "jad") or a RecordStore called storage.

store

public void store(java.lang.String storage)
           throws java.io.IOException
Store the set of key-value pairs held by this Properties object into a given storage element. The storage element is environment-dependent: In a J2SE or PJAVA environment it is a file named storage. In a MIDP environment it is a RecordStore called storage.

clone

public java.lang.Object clone()
Overrides:
clone in class java.util.Hashtable