Class 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 the load() and store methods.
    Author:
    Steffen Rusitschka - Siemens AG, Marc Schlichte - Siemens AG, Nicolas Lhuillier - Motorola, Giovanni Caire - TILAB
    See Also:
    Serialized Form
    • Constructor Detail

      • Properties

        public Properties()
        Default constructor.
    • Method Detail

      • 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 named storage. In a MIDP environment it can be the JAD of the MIDlet (if storage = "jad") or a RecordStore called storage.
        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 named storage. In a MIDP environment it is a RecordStore called storage.
        Throws:
        IOException