2005/5/9

     
 

class FilterObjectReader

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

acdk::net::srfsys::FilterObjectReader Class Reference

#include <ObjectLogReader.h>

Inheritance diagram for acdk::net::srfsys::FilterObjectReader:

acdk::lang::Object acdk::io::ObjectReader acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::net::srfsys::ObjectLogReader List of all members.

Detailed Description

### move this class to acdk::io


Public Member Functions

 FilterObjectReader (IN(::acdk::io::RObjectReader) in)
virtual int available ()
 returns the number of bytes available in this stream before blocking Some Reader always return 0

virtual void close ()
 closes this Reader.

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

virtual jlong skip (jlong n)
 Move forwart into the stream.

virtual int read ()
 read a single byte from stream

virtual int read (IN(RbyteArray) buffer, int offset=0, int len=-1)
 read the len bytes into buffer at offset of the buffer

virtual int read (byte *buffer, int offset, int len)
virtual void mark (int readAheadLimit)
virtual bool markSupported ()
virtual void reset ()
 if mark is set, set stream to mark point otherwise to begin of this stream.

virtual void setIn (IN(RReader) reader)
virtual RStorage getStorage ()
virtual RReader getStorageReader ()
virtual bool readBoolean ()
virtual char readChar ()
virtual uc2char readUcChar ()
virtual double readDouble ()
virtual float readFloat ()
virtual int readInt ()
virtual jlong readLong ()
virtual short readShort ()
virtual RString readString ()
virtual acdk::lang::Object readObject ()
 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)
 In this version, the stream may not store meta information about the classes.

virtual RClass readClassDescriptor (IN(RClass) cls)
virtual void defaultReadObject (IN(RClass) cls, IN(acdk::lang::Object) obj)
 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)

Protected Attributes

::acdk::io::RObjectReader _in


Constructor & Destructor Documentation

acdk::net::srfsys::FilterObjectReader::FilterObjectReader IN(::acdk::io::RObjectReader in  )  [inline]
 


Member Function Documentation

virtual int acdk::net::srfsys::FilterObjectReader::available  )  [inline, virtual]
 

returns the number of bytes available in this stream before blocking Some Reader always return 0

Reimplemented from acdk::io::Reader.

virtual void acdk::net::srfsys::FilterObjectReader::close  )  [inline, virtual]
 

closes this Reader.

Note: Some Reader must be closed explicitaly Note: Reader implementation must be avare from closing a reader more than one

Reimplemented from acdk::io::Reader.

virtual void acdk::net::srfsys::FilterObjectReader::defaultReadObject IN(RClass cls,
IN(acdk::lang::Object obj
[inline, virtual]
 

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

Implements acdk::io::ObjectReader.

virtual RStorage acdk::net::srfsys::FilterObjectReader::getStorage  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual RReader acdk::net::srfsys::FilterObjectReader::getStorageReader  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual void acdk::net::srfsys::FilterObjectReader::mark int  readAheadLimit  )  [inline, virtual]
 

Reimplemented from acdk::io::Reader.

virtual bool acdk::net::srfsys::FilterObjectReader::markSupported  )  [inline, virtual]
 

Reimplemented from acdk::io::Reader.

virtual int acdk::net::srfsys::FilterObjectReader::read byte buffer,
int  offset,
int  len
[inline, virtual]
 

See also:
other read(RbyteArray, int, int)

Reimplemented from acdk::io::Reader.

virtual int acdk::net::srfsys::FilterObjectReader::read IN(RbyteArray buffer,
int  offset = 0,
int  len = -1
[inline, virtual]
 

read the len bytes into buffer at offset of the buffer

Parameters:
buffer where to write the bytes
offset offset to write into buffer
len how many bytes to read. if == -1 read into many bytes, that fits into buffer (buffer->length() - offset) ``
Returns:
number of bytes readed. may less than input if EOS is reached
Exceptions:
EOF exception, if trying to read behind EOS

Reimplemented from acdk::io::Reader.

virtual int acdk::net::srfsys::FilterObjectReader::read  )  [inline, virtual]
 

read a single byte from stream

Returns:
the byte readed or -1 if EOS.
Exceptions:
EOF exception, if trying to read behind EOS

Reimplemented from acdk::io::Reader.

virtual bool acdk::net::srfsys::FilterObjectReader::readBoolean  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual char acdk::net::srfsys::FilterObjectReader::readChar  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual RClass acdk::net::srfsys::FilterObjectReader::readClassDescriptor IN(RClass cls  )  [inline, virtual]
 

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

Implements acdk::io::ObjectReader.

virtual double acdk::net::srfsys::FilterObjectReader::readDouble  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual float acdk::net::srfsys::FilterObjectReader::readFloat  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual int acdk::net::srfsys::FilterObjectReader::readInt  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual jlong acdk::net::srfsys::FilterObjectReader::readLong  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual acdk::lang::Object acdk::net::srfsys::FilterObjectReader::readObject IN(::acdk::lang::RClass cls  )  [inline, virtual]
 

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

Implements acdk::io::ObjectReader.

Reimplemented in acdk::net::srfsys::ObjectLogReader.

virtual acdk::lang::Object acdk::net::srfsys::FilterObjectReader::readObject  )  [inline, virtual]
 

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

Implements acdk::io::ObjectReader.

Reimplemented in acdk::net::srfsys::ObjectLogReader.

virtual acdk::lang::dmi::ScriptVar acdk::net::srfsys::FilterObjectReader::readScriptVar bool  withTypeInfo = true,
bool  withFlags = true
[inline, virtual]
 

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

Reimplemented from acdk::io::ObjectReader.

virtual short acdk::net::srfsys::FilterObjectReader::readShort  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual RString acdk::net::srfsys::FilterObjectReader::readString  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual uc2char acdk::net::srfsys::FilterObjectReader::readUcChar  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual void acdk::net::srfsys::FilterObjectReader::reset  )  [inline, virtual]
 

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

Implements acdk::io::ObjectReader.

virtual jlong acdk::net::srfsys::FilterObjectReader::seek SeekPos  seekrel,
jlong  seekpos
[inline, virtual]
 

Set stream position in this Reader to given position.

Returns:
the absolute position in this stream

Implements acdk::io::ObjectReader.

virtual void acdk::net::srfsys::FilterObjectReader::setIn IN(RReader reader  )  [inline, virtual]
 

Implements acdk::io::ObjectReader.

virtual jlong acdk::net::srfsys::FilterObjectReader::skip jlong  n  )  [inline, virtual]
 

Move forwart into the stream.

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

Implements acdk::io::ObjectReader.


Member Data Documentation

::acdk::io::RObjectReader acdk::net::srfsys::FilterObjectReader::_in [protected]