2005/5/9

     
 

class ObjectReader

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

acdk::io::ObjectReader Class Reference

#include <ObjectReader.h>

Inheritance diagram for acdk::io::ObjectReader:

acdk::io::DataReader acdk::io::AbstractObjectReader acdk::net::srfsys::FilterObjectReader acdkx::orb::CDRObjectReader acdk::io::BinaryObjectReader acdk::xml::XMLObjectReader acdk::net::srfsys::ObjectLogReader acdkx::orb::OrbInputStream acdk::java::serialization::JavaObjectReader acdkx::orb::ReplyInputStream List of all members.

Detailed Description

Interface for reading basic and object types.

API: ACDK<br/> See also:  Serialization.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.20
Date:
Date
2005/04/09 19:26:45


Public Member Functions

overwrite jlong seek (SeekPos seekrel, jlong seekpos)=0
 Set stream position in this Reader to given position.

overwrite void reset ()=0
 if mark is set, set stream to mark point otherwise to begin of this stream.

overwrite jlong skip (jlong n)=0
 Move forwart into the stream.

overwrite void setIn (IN(RReader) reader)=0
overwrite RStorage getStorage ()=0
overwrite RReader getStorageReader ()=0
overwrite bool readBoolean ()=0
overwrite char readChar ()=0
overwrite uc2char readUcChar ()=0
overwrite double readDouble ()=0
overwrite float readFloat ()=0
overwrite int readInt ()=0
overwrite jlong readLong ()=0
overwrite short readShort ()=0
overwrite RString readString ()=0
virtual acdk::lang::Object readObject ()=0
 in this Version the stream itself has to store meta information about the class of the object.

virtual acdk::lang::Object readObject (IN(::acdk::lang::RClass) cls)=0
 In this version, the stream may not store meta information about the classes.

virtual RClass readClassDescriptor (IN(RClass) cls)=0
virtual void defaultReadObject (IN(RClass) cls, IN(acdk::lang::Object) obj)=0
 default method for reading objects data only fields of current class are read.

virtual acdk::lang::dmi::ScriptVar readScriptVar (bool withTypeInfo=true, bool withFlags=true)


Member Function Documentation

virtual void acdk::io::ObjectReader::defaultReadObject IN(RClass cls,
IN(acdk::lang::Object obj
[pure virtual]
 

default method for reading objects data only fields of current class are read.

Implemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.

overwrite RStorage acdk::io::ObjectReader::getStorage  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.

overwrite RReader acdk::io::ObjectReader::getStorageReader  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.

overwrite bool acdk::io::ObjectReader::readBoolean  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::io::BinaryObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::xml::XMLObjectReader, and acdkx::orb::CDRObjectReader.

overwrite char acdk::io::ObjectReader::readChar  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::io::BinaryObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::xml::XMLObjectReader, and acdkx::orb::CDRObjectReader.

virtual RClass acdk::io::ObjectReader::readClassDescriptor IN(RClass cls  )  [pure virtual]
 

Parameters:
cls may be Nul
Returns:
if the readClassDescriptor just return param cls

Implemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.

overwrite double acdk::io::ObjectReader::readDouble  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::io::BinaryObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::xml::XMLObjectReader, and acdkx::orb::CDRObjectReader.

overwrite float acdk::io::ObjectReader::readFloat  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::io::BinaryObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::xml::XMLObjectReader, and acdkx::orb::CDRObjectReader.

overwrite int acdk::io::ObjectReader::readInt  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::io::BinaryObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::xml::XMLObjectReader, and acdkx::orb::CDRObjectReader.

overwrite jlong acdk::io::ObjectReader::readLong  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::io::BinaryObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::xml::XMLObjectReader, and acdkx::orb::CDRObjectReader.

virtual acdk::lang::Object acdk::io::ObjectReader::readObject IN(::acdk::lang::RClass cls  )  [pure virtual]
 

In this version, the stream may not store meta information about the classes.

Implemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::net::srfsys::ObjectLogReader, and acdkx::orb::CDRObjectReader.

virtual acdk::lang::Object acdk::io::ObjectReader::readObject  )  [pure virtual]
 

in this Version the stream itself has to store meta information about the class of the object.

Implemented in acdk::io::AbstractObjectReader, acdk::java::serialization::JavaObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::net::srfsys::ObjectLogReader, and acdkx::orb::CDRObjectReader.

virtual acdk::lang::dmi::ScriptVar acdk::io::ObjectReader::readScriptVar bool  withTypeInfo = true,
bool  withFlags = true
[inline, virtual]
 

Parameters:
withTypeInfo the the is encoded in the stream
withFlags writes also the flags

Reimplemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.

overwrite short acdk::io::ObjectReader::readShort  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::io::BinaryObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::xml::XMLObjectReader, and acdkx::orb::CDRObjectReader.

overwrite RString acdk::io::ObjectReader::readString  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::java::serialization::JavaObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.

overwrite uc2char acdk::io::ObjectReader::readUcChar  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::BinaryObjectReader, acdk::net::srfsys::FilterObjectReader, acdk::xml::XMLObjectReader, and acdkx::orb::CDRObjectReader.

overwrite void acdk::io::ObjectReader::reset  )  [pure virtual]
 

if mark is set, set stream to mark point otherwise to begin of this stream.

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.

overwrite jlong acdk::io::ObjectReader::seek SeekPos  seekrel,
jlong  seekpos
[pure virtual]
 

Set stream position in this Reader to given position.

Returns:
the absolute position in this stream

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.

overwrite void acdk::io::ObjectReader::setIn IN(RReader reader  )  [pure virtual]
 

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.

overwrite jlong acdk::io::ObjectReader::skip jlong  n  )  [pure virtual]
 

Move forwart into the stream.

Returns:
how many bytes skipped. May less then input, in case EOS is reached

Implements acdk::io::DataReader.

Implemented in acdk::io::AbstractObjectReader, acdk::net::srfsys::FilterObjectReader, and acdkx::orb::CDRObjectReader.