2005/5/9

     
 

class FilterObjectWriter

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

acdk::net::srfsys::FilterObjectWriter Class Reference

#include <ObjectLogWriter.h>

Inheritance diagram for acdk::net::srfsys::FilterObjectWriter:

acdk::lang::Object acdk::io::ObjectWriter acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::net::srfsys::ObjectLogWriter List of all members.

Detailed Description

### move this class to acdk::io


Public Member Functions

 FilterObjectWriter (IN(::acdk::io::RObjectWriter) out)
virtual void flush ()
virtual void close ()
virtual void write (const byte *cstr, int offset, int len)
virtual void write (byte c)
 default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

virtual void write (IN(RbyteArray) ch, int offset=0, int len=-1)
 writes to the unterlying data stream

virtual void setOut (IN(RWriter) writer)
virtual RStorage getStorage ()
virtual RWriter getStorageWriter ()
 returns the unfiltered Writer

virtual void writeBoolean (bool b)
virtual void writeChar (char b)
virtual void writeUcChar (uc2char b)
virtual void writeShort (short b)
virtual void writeInt (int b)
virtual void writeLong (jlong b)
virtual void writeFloat (float b)
virtual void writeDouble (double b)
virtual void writeString (IN(RString) str)
virtual void writeOpaque (IN(RbyteArray) array)
 writes the data as opaque data.

virtual void writeObject (IN(acdk::lang::Object) obj)
 This version write acdk::lang::Object to a Writer.

virtual void writeObject (IN(RClass) cls, IN(acdk::lang::Object) obj)
 This version writes an acdk::lang::Object to a Writer using the Class.

virtual void defaultWriteObject (IN(RClass) cls, IN(acdk::lang::Object) obj)
 if a class implements the writeObject method it can call defaultWriteObject for default object serialization This method only writes the acdk::lang::Object information (the fields) of this class

virtual void writeUnshared (IN(RClass) cls, IN(acdk::lang::Object) obj)
 write a class unshared without any back references to previous written objects

virtual void writeClassDescriptor (IN(RClass) cls, IN(acdk::lang::Object) obj)
 writes a class descriptor of current object.

virtual void writeScriptVar (acdk::lang::dmi::ScriptVar &sv, bool withTypeInfo=true, bool withFlags=true)

Protected Attributes

::acdk::io::RObjectWriter _out


Constructor & Destructor Documentation

acdk::net::srfsys::FilterObjectWriter::FilterObjectWriter IN(::acdk::io::RObjectWriter out  )  [inline]
 


Member Function Documentation

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

Implements acdk::io::Writer.

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

if a class implements the writeObject method it can call defaultWriteObject for default object serialization This method only writes the acdk::lang::Object information (the fields) of this class

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::flush  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

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

Implements acdk::io::ObjectWriter.

virtual RWriter acdk::net::srfsys::FilterObjectWriter::getStorageWriter  )  [inline, virtual]
 

returns the unfiltered Writer

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::setOut IN(RWriter writer  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::write IN(RbyteArray ch,
int  offset = 0,
int  len = -1
[inline, virtual]
 

writes to the unterlying data stream

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::write byte  c  )  [inline, virtual]
 

default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::write const byte cstr,
int  offset,
int  len
[inline, virtual]
 

Reimplemented from acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeBoolean bool  b  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeChar char  b  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

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

writes a class descriptor of current object.

This method will only be called once for the most derived class The main purpose of the class descriptor is to identify the class to enable restruction out of the stream

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeDouble double  b  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeFloat float  b  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeInt int  b  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeLong jlong  b  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

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

This version writes an acdk::lang::Object to a Writer using the Class.

In normal case, thit version writes the data untagged (i.e. no meta info) into the writer.

Implements acdk::io::ObjectWriter.

Reimplemented in acdk::net::srfsys::ObjectLogWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeObject IN(acdk::lang::Object obj  )  [inline, virtual]
 

This version write acdk::lang::Object to a Writer.

In normal case, it also write a description (tagged) of the Class (for ClassLoader) at the beginning.

Parameters:
obj the acdk::lang::Object to writer

Reimplemented from acdk::io::ObjectWriter.

Reimplemented in acdk::net::srfsys::ObjectLogWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeOpaque IN(RbyteArray array  )  [inline, virtual]
 

writes the data as opaque data.

DataWriter may apply some encoding

Reimplemented from acdk::io::DataWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeScriptVar acdk::lang::dmi::ScriptVar sv,
bool  withTypeInfo = true,
bool  withFlags = true
[inline, virtual]
 

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

Reimplemented from acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeShort short  b  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeString IN(RString str  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdk::net::srfsys::FilterObjectWriter::writeUcChar uc2char  b  )  [inline, virtual]
 

Implements acdk::io::ObjectWriter.

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

write a class unshared without any back references to previous written objects

Implements acdk::io::ObjectWriter.


Member Data Documentation

::acdk::io::RObjectWriter acdk::net::srfsys::FilterObjectWriter::_out [protected]