MXmlEngOutputStream Class Reference

#include <xml/dom/xmlengoutputstream.h>

class MXmlEngOutputStream
Public Member Functions
pure virtual TInt Close()
pure virtual TInt Write(const TDesC8 &)

Detailed Description

Provides an interface for writing serialized XML data to a stream. This interface should be implemented by client applications when the RXmlEngDocument::SaveL() method is used to serialize XML data to a stream.

No ownership is transferred by RXmlEngDocument::SaveL(), thus an object of the implementing class should be freed after use.

See also: RXmlEngDocument::SaveL()

Member Function Documentation

Close ( )

TInt Close()[pure virtual]

Closes the output stream.

Return Value
0 if successful or -1 in the case of an error

Write ( const TDesC8 & )

TInt Write(const TDesC8 &aBuffer)[pure virtual]

Writes the specified buffer to the output stream.

Parameters
aBufferThe data to write
Return Value
The number of bytes written or -1 in the case of an error