|
|
|
|
|
|
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:
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
Member Function Documentation
virtual void acdk::net::srfsys::FilterObjectWriter::close |
( |
|
) |
[inline, virtual] |
|
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] |
|
virtual RStorage acdk::net::srfsys::FilterObjectWriter::getStorage |
( |
|
) |
[inline, virtual] |
|
virtual RWriter acdk::net::srfsys::FilterObjectWriter::getStorageWriter |
( |
|
) |
[inline, virtual] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::setOut |
( |
IN(RWriter) |
writer |
) |
[inline, virtual] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::write |
( |
IN(RbyteArray) |
ch, |
|
|
int |
offset = 0, |
|
|
int |
len = -1 |
|
) |
[inline, virtual] |
|
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] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeBoolean |
( |
bool |
b |
) |
[inline, virtual] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeChar |
( |
char |
b |
) |
[inline, virtual] |
|
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] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeFloat |
( |
float |
b |
) |
[inline, virtual] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeInt |
( |
int |
b |
) |
[inline, virtual] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeLong |
( |
jlong |
b |
) |
[inline, virtual] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeObject |
( |
IN(RClass) |
cls, |
|
|
IN(acdk::lang::Object) |
obj |
|
) |
[inline, virtual] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeObject |
( |
IN(acdk::lang::Object) |
obj |
) |
[inline, virtual] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeOpaque |
( |
IN(RbyteArray) |
array |
) |
[inline, virtual] |
|
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] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeString |
( |
IN(RString) |
str |
) |
[inline, virtual] |
|
virtual void acdk::net::srfsys::FilterObjectWriter::writeUcChar |
( |
uc2char |
b |
) |
[inline, virtual] |
|
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
|
|