28 #ifndef _OSXMLENCODEBUFFER_H_ 29 #define _OSXMLENCODEBUFFER_H_ 58 EXTXMLMETHOD OSXMLEncodeBuffer (OSOCTET* pMsgBuf,
size_t msgBufLen);
69 int addXMLHeader (
const OSUTF8CHAR* version = OSUTF8(
"1.0"),
70 const OSUTF8CHAR* encoding = OSUTF8(OSXMLHDRUTF8),
71 OSBOOL newLine = TRUE);
82 EXTXMLMETHOD
int addXMLText (
const OSUTF8CHAR* text);
91 return getByteIndex();
101 EXTXMLMETHOD
virtual int init ();
118 virtual OSBOOL
isA (Type bufferType) {
119 return bufferType == XMLEncode;
127 OSRTZTERM (getCtxtPtr());
135 EXTXMLMETHOD
void setFragment (OSBOOL value = TRUE);
147 EXTXMLMETHOD
virtual long write (
const char* filename);
160 EXTXMLMETHOD
virtual long write (FILE* fp);
void nullTerminate()
This method adds a null-terminator character ('\0') at the current buffer position.
virtual size_t getMsgLen()
This method returns the length of a previously encoded XML message.
The OSXMLEncodeBuffer class is derived from the OSXMLEncodeBase class.
virtual OSBOOL isA(Type bufferType)
This is a virtual method that must be overridden by derived classes to allow identification of the cl...
EXTXMLMETHOD OSXMLEncodeBase(OSRTContext *pContext=0)
The protected constructor creates a new context and sets the buffer class type.
XML encode/decode buffer and stream base class.
OSXMLEncodeBase is a base class for the XML encode buffer and stream classes, OSXMLEncodeBuffer and O...