2005/5/9

     
 

class XMLObjectReader

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::xml::XMLObjectReader Class Reference

#include <XMLObjectReader.h>

Inheritance diagram for acdk::xml::XMLObjectReader:

acdk::io::AbstractObjectReader acdk::io::AbstractFilterReader acdk::io::ObjectReader acdk::io::AbstractReader acdk::io::FilterReader acdk::lang::Object acdk::io::Reader acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

API: ACDK<br/>.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.16
Date:
Date
2005/04/10 12:52:41
Bug:
_withFieldInfo == true will probably not work


Public Member Functions

 XMLObjectReader (IN(RReader) in, int flags=XMLSerializeDefaultFlags)
 XMLObjectReader (IN(RXMLTokenizer) tin, int flags=XMLSerializeDefaultFlags)
virtual bool readBoolean ()
 From acdk::io::DataReader.

virtual char readChar ()
virtual uc2char readUcChar ()
virtual double readDouble ()
virtual float readFloat ()
virtual int readInt ()
virtual jlong readLong ()
virtual short readShort ()
virtual RString readStringImpl ()
virtual RbyteArray readOpaque ()
 writes the oktet array as opaque data with optional encoding

virtual RString readTagStart (IN(RString) key, IN(RString) expected=Nil)
 Reads start of Tag.

virtual RString readTagEnd (IN(RString) key, IN(RString) expected=Nil)
 Writes end of Tag.

virtual RClass readClassId ()
 reads from the stream the acdk::lang::Object Id (for example the fully qualified class name) and create an new acdk::lang::Object if withSerialVersionUID() is true, the should be read and checked agains local class


Protected Member Functions

RString readFieldInfo ()
 reads the <field> tag.

acdk::lang::Object readBasicArray (IN(RClass) cls, int length)
void readSimpleStartToken (IN(RString) str)
void readSimpleEndToken (IN(RString) str)
RString _readXMLText ()

Private Attributes

RXMLTokenizer _tin


Constructor & Destructor Documentation

acdk::xml::XMLObjectReader::XMLObjectReader IN(RReader in,
int  flags = XMLSerializeDefaultFlags
 

acdk::xml::XMLObjectReader::XMLObjectReader IN(RXMLTokenizer tin,
int  flags = XMLSerializeDefaultFlags
 


Member Function Documentation

RString acdk::xml::XMLObjectReader::_readXMLText  )  [protected]
 

acdk::lang::Object acdk::xml::XMLObjectReader::readBasicArray IN(RClass cls,
int  length
[protected]
 

virtual bool acdk::xml::XMLObjectReader::readBoolean  )  [virtual]
 

From acdk::io::DataReader.

Implements acdk::io::AbstractObjectReader.

virtual char acdk::xml::XMLObjectReader::readChar  )  [virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual RClass acdk::xml::XMLObjectReader::readClassId  )  [virtual]
 

reads from the stream the acdk::lang::Object Id (for example the fully qualified class name) and create an new acdk::lang::Object if withSerialVersionUID() is true, the should be read and checked agains local class

Implements acdk::io::AbstractObjectReader.

virtual double acdk::xml::XMLObjectReader::readDouble  )  [virtual]
 

Implements acdk::io::AbstractObjectReader.

RString acdk::xml::XMLObjectReader::readFieldInfo  )  [protected]
 

reads the <field> tag.

if existant returns the name prop

virtual float acdk::xml::XMLObjectReader::readFloat  )  [virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual int acdk::xml::XMLObjectReader::readInt  )  [virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual jlong acdk::xml::XMLObjectReader::readLong  )  [virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual RbyteArray acdk::xml::XMLObjectReader::readOpaque  )  [virtual]
 

writes the oktet array as opaque data with optional encoding

Reimplemented from acdk::io::AbstractObjectReader.

virtual short acdk::xml::XMLObjectReader::readShort  )  [virtual]
 

Implements acdk::io::AbstractObjectReader.

void acdk::xml::XMLObjectReader::readSimpleEndToken IN(RString str  )  [protected]
 

void acdk::xml::XMLObjectReader::readSimpleStartToken IN(RString str  )  [protected]
 

virtual RString acdk::xml::XMLObjectReader::readStringImpl  )  [virtual]
 

Implements acdk::io::AbstractObjectReader.

virtual RString acdk::xml::XMLObjectReader::readTagEnd IN(RString key,
IN(RString expected = Nil
[virtual]
 

Writes end of Tag.

For example '' for a int type. This function will be called by writeObject if the object should be written with tags

Implements acdk::io::AbstractObjectReader.

virtual RString acdk::xml::XMLObjectReader::readTagStart IN(RString key,
IN(RString expected = Nil
[virtual]
 

Reads start of Tag.

For example '' for a int type in a XML style Reader. This function will be called by writeObject if the object should be written with tags if the expected tag does not exists, throw ObjectStreamException

Implements acdk::io::AbstractObjectReader.

virtual uc2char acdk::xml::XMLObjectReader::readUcChar  )  [virtual]
 

Implements acdk::io::ObjectReader.


Member Data Documentation

RXMLTokenizer acdk::xml::XMLObjectReader::_tin [private]