:: com :: sun :: star :: io ::

interface XPersistObject

Methods' Summary
getServiceName gives the service name of the object  
write writes all the persistent data of the object to the stream.  
read reads all the persistent data of the object from the stream.  
Methods' Details
getServiceName
string
getServiceName();

Description
gives the service name of the object
Returns
the service name that specifies the behavior and the persistent data format of this implementation.

This name is used to create such an object by a factory during deserialization.

See also
::com::sun::star::lang::XServiceInfo::getAvailableServiceNames
write
void
write( [in] XObjectOutputStream  OutStream )
raises( IOException );

Description
writes all the persistent data of the object to the stream.

The implementation must write the data in the order documented in the service specification.

Parameter OutStream
the stream, the data shall be written to. The stream supports simple types and other XPersistObject implementations.
read
void
read( [in] XObjectInputStream  InStream )
raises( IOException );

Description
reads all the persistent data of the object from the stream.

In case other XPersistObjects are read from the stream, the implementation uses a factory to create these objects (in general the global service manager).

The implementation must read the data in the order documented at the service specification.

Parameter InStream
the stream, the data shall be read from.
Top of Page