Package jade.util.leap
Class Properties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- jade.util.leap.Properties
-
- All Implemented Interfaces:
Serializable,Serializable,Cloneable,Map<Object,Object>
- Direct Known Subclasses:
ExtendedProperties
public class Properties extends 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 theload()andstoremethods.- 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
Constructors Constructor Description Properties()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()voidload(String storage)Load a set of key-value pairs from a given storage element.voidstore(String storage)Store the set of key-value pairs held by this Properties object into a given storage element.static PropertiestoLeapProperties(Properties pp)-
Methods inherited from class java.util.Properties
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Method Detail
-
toLeapProperties
public static Properties toLeapProperties(Properties pp)
-
load
public void load(String storage) throws 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 namedstorage. In a MIDP environment it can be the JAD of the MIDlet (ifstorage= "jad") or a RecordStore calledstorage.- Throws:
IOException
-
store
public void store(String storage) throws 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 namedstorage. In a MIDP environment it is a RecordStore calledstorage.- Throws:
IOException
-
clone
public Object clone()
- Overrides:
clonein classProperties
-
-