Inherits From:nsISupports

This interface is implemented by the following components:


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.


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.


Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com