nsISerializable
| IID: | 91cca981-c26d-44a8-bebe-d9ed4891503a |
| Inherits From: | nsISupports |
This interface is implemented by the following components:
- @mozilla.org/aggregateprincipal;1
- @mozilla.org/certificateprincipal;1
- @mozilla.org/codebaseprincipal;1
- @mozilla.org/network/simple-uri;1
- @mozilla.org/network/standard-url;1
- @mozilla.org/rdf/resource-factory;1?name=imap
- @mozilla.org/rdf/resource-factory;1?name=mailbox
- @mozilla.org/rdf/resource-factory;1?name=news
- @mozilla.org/supports-array;1
- @mozilla.org/systemprincipal;1
- @mozilla.org/principal;1
- @mozilla.org/nullprincipal;1
Methods
void read ( nsIObjectInputStream inputStream )
void write ( nsIObjectOutputStream outputStream )
void read ( nsIObjectInputStream inputStream )
Initialize the object implementing nsISerializable, which must have been freshly constructed via CreateInstance. All data members that can't be set to default values must have been serialized by write, and should be read from inputStream in the same order by this method.
- Arguments:
- inputStream
void write ( nsIObjectOutputStream outputStream )
Serialize the object implementing nsISerializable to outputStream, by writing each data member that must be recovered later to reconstitute a working replica of this object, in a canonical member and byte order, to outputStream.
NB: a class that implements nsISerializable *must* also implement nsIClassInfo, in particular nsIClassInfo::GetClassID.
- Arguments:
- outputStream
Reference documentation is generated from Mozilla's source.
