jade.util.leap
Class Properties

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--jade.util.leap.Properties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, Serializable
Direct Known Subclasses:
BasicProperties

public class Properties
extends java.util.Properties
implements Serializable

The LEAP (environment-dependent) version of the &qote;java.util.Properties&qote; class. This class appears to be exactly the same in J2SE, PJAVA and MIDP. The internal implementation is different in the three cases however. In particular the J2SE and PJAVA implementation simply extend java.util.Properties. In particular the MIDP version re-implement the load and store methods to access 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

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
Properties()
          Default constructor.
 
Method Summary
 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, clone, 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()
Default constructor.

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.

java.io.IOException

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.

java.io.IOException


JADE