WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIPersistentProperties

IID:1A180F60-93B2-11d2-9B8B-00805F8A16D9
Inherits From:nsIProperties

This interface is implemented by the following components:


Methods

nsISimpleEnumerator enumerate ( ) AString getStringProperty ( AUTF8String key ) void load ( nsIInputStream input ) void save ( nsIOutputStream output , AUTF8String header ) AString setStringProperty ( AUTF8String key , AString value ) void subclass ( nsIPersistentProperties superclass )

nsISimpleEnumerator enumerate ( )

Get an enumeration of nsIPropertyElement objects, which are read-only (i.e. setting properties on the element will not make changes back into the source nsIPersistentProperties


AString getStringProperty ( AUTF8String key )

Shortcut to nsIProperty's get() which retrieves a string value directly (and thus faster)

Arguments:
key

void load ( nsIInputStream input )

Load a set of name/value pairs from the input stream names and values should be in UTF8

Arguments:
input

void save ( nsIOutputStream output , AUTF8String header )

Output the values to the stream - results will be in UTF8

Arguments:
output
header

AString setStringProperty ( AUTF8String key , AString value )

Shortcut to nsIProperty's set() which sets a string value directly (and thus faster). If the given property already exists, then the old value will be returned

Arguments:
key
value

void subclass ( nsIPersistentProperties superclass )

Call subclass() to make future calls to load() set the properties in this "superclass" instead

Arguments:
superclass

References

This interface is passed as an argument to the following methods:

nsIPersistentProperties.subclass

Reference documentation is generated from Mozilla's source.