#include <XMLObjectWriter.h>
Inheritance diagram for acdk::xml::XMLObjectWriter:
This mechanism can also be used to store objects in a file.
Public Member Functions | |
XMLObjectWriter (IN(RWriter) out, int flags=XMLSerializeDefaultFlags) | |
void | doIdent (bool indent) |
writing formated XML for easier to read | |
virtual void | writeBoolean (bool b) |
writing XML with members element names | |
virtual void | writeChar (char b) |
From acdk::io::DataWriter. | |
virtual void | writeUcChar (uc2char b) |
From acdk::io::DataWriter. | |
virtual void | writeShort (short b) |
From acdk::io::DataWriter. | |
virtual void | writeInt (int b) |
From acdk::io::DataWriter. | |
virtual void | writeLong (jlong b) |
From acdk::io::DataWriter. | |
virtual void | writeFloat (float b) |
From acdk::io::DataWriter. | |
virtual void | writeDouble (double b) |
From acdk::io::DataWriter. | |
virtual void | write (IN(RbyteArray) array, int offset=0, int len=-1) |
From acdk::io::DataWriter. | |
virtual void | writeStringImpl (IN(RString) str) |
virtual void | writeOpaque (IN(RbyteArray) array) |
From acdk::io::DataWriter. | |
virtual void | writeTagStart (IN(RString) key, IN(RString) value=Nil) |
Writes start of Tag. | |
virtual void | writeTagEnd (IN(RString) key, IN(RString) value=Nil) |
Writes end of Tag. | |
virtual void | writeClassId (IN(::acdk::lang::RClass) obj) |
Write boot-straping ID for the given, so the corresponding AbstractObjectReader::readObjectId() can create an acdk::lang::Object instance. | |
Static Public Member Functions | |
RString | xmlencode (IN(RString) txt) |
In case ObjectWriter should handle writing Objects which may have cyclic references, for each acdk::lang::Object a local reference id. | |
RString | xmldecode (IN(RString) txt) |
Protected Member Functions | |
void | _dumpindend () |
Private Attributes | |
bool | _doIndent |
writing formated XML for easier to read | |
int | _indent |
helper for render as text |
|
|
|
|
|
writing formated XML for easier to read
|
|
From acdk::io::DataWriter. In the concrete class, you have to implement these classes Implements acdk::io::AbstractObjectWriter. |
|
writing XML with members element names
Implements acdk::io::ObjectWriter. |
|
From acdk::io::DataWriter. In the concrete class, you have to implement these classes Implements acdk::io::AbstractObjectWriter. |
|
Write boot-straping ID for the given, so the corresponding AbstractObjectReader::readObjectId() can create an acdk::lang::Object instance.
Implements acdk::io::AbstractObjectWriter. |
|
From acdk::io::DataWriter. In the concrete class, you have to implement these classes Implements acdk::io::AbstractObjectWriter. |
|
From acdk::io::DataWriter. In the concrete class, you have to implement these classes Implements acdk::io::AbstractObjectWriter. |
|
From acdk::io::DataWriter. In the concrete class, you have to implement these classes Implements acdk::io::AbstractObjectWriter. |
|
From acdk::io::DataWriter. In the concrete class, you have to implement these classes Implements acdk::io::AbstractObjectWriter. |
|
From acdk::io::DataWriter. In the concrete class, you have to implement these classes Reimplemented from acdk::io::AbstractObjectWriter. |
|
From acdk::io::DataWriter. In the concrete class, you have to implement these classes Implements acdk::io::AbstractObjectWriter. |
|
Implements acdk::io::AbstractObjectWriter. |
|
Writes end of Tag. This function will be written, to For example '' for a int type. This function will be called by writeObject if the object should be written with tags Implements acdk::io::AbstractObjectWriter. |
|
Writes start of Tag. This function will be written, to For example '' for a int type in a XML style writer. This function will be called by writeObject if the object should be written with tags Implements acdk::io::AbstractObjectWriter. |
|
From acdk::io::DataWriter. In the concrete class, you have to implement these classes Implements acdk::io::AbstractObjectWriter. |
|
|
|
In case ObjectWriter should handle writing Objects which may have cyclic references, for each acdk::lang::Object a local reference id. Recursive and duplicated elements will be written only one in the stream. If the implementing ObjectReader does not support local reference resolutions, it should throw NotSupportedException |
|
writing formated XML for easier to read
|
|
helper for render as text
|