2005/5/9

     
 

class JavaObjectWriter

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

acdk::java::serialization::JavaObjectWriter Class Reference

#include <JavaObjectWriter.h>

Inheritance diagram for acdk::java::serialization::JavaObjectWriter:

acdk::io::BinaryObjectWriter acdk::io::AbstractObjectWriter acdk::io::AbstractFilterWriter acdk::io::ObjectWriter acdk::io::AbstractWriter acdk::io::FilterWriter acdk::lang::Object acdk::io::Writer acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Public Member Functions

 JavaObjectWriter (IN(::acdk::io::RWriter) out)
void writeObject (IN(acdk::lang::Object) obj)
 This version write acdk::lang::Object to a Writer.

void writeString (IN(RString) str)
 From acdk::io::DataWriter.

void writeUtf (IN(RString) str)
 Write with TC_STRING or TC_LONGSTRING signature.

void writeShortUtf (IN(RString) str)
 Writes without signature.

void writeBlock (IN(RbyteArray) block)
void writeClassDesc (IN(RClassDescription) cdesc)
int registerNewObject (IN(acdk::lang::Object) obj)
int findPrevObject (IN(acdk::lang::Object) obj)
 return -1 if acdk::lang::Object not found

RClassDescription getClassDescr (const ClassTypeMapping *ctm, IN(RClass) cls)

Protected Member Functions

void _writeStreamHeader ()

Private Attributes

RJavaObjectReadWriteCache _prevObjects

Constructor & Destructor Documentation

acdk::java::serialization::JavaObjectWriter::JavaObjectWriter IN(::acdk::io::RWriter out  ) 
 


Member Function Documentation

void acdk::java::serialization::JavaObjectWriter::_writeStreamHeader  )  [protected]
 

int acdk::java::serialization::JavaObjectWriter::findPrevObject IN(acdk::lang::Object obj  )  [inline]
 

return -1 if acdk::lang::Object not found

RClassDescription acdk::java::serialization::JavaObjectWriter::getClassDescr const ClassTypeMapping ctm,
IN(RClass cls
 

int acdk::java::serialization::JavaObjectWriter::registerNewObject IN(acdk::lang::Object obj  )  [inline]
 

void acdk::java::serialization::JavaObjectWriter::writeBlock IN(RbyteArray block  ) 
 

void acdk::java::serialization::JavaObjectWriter::writeClassDesc IN(RClassDescription cdesc  ) 
 

void acdk::java::serialization::JavaObjectWriter::writeObject IN(acdk::lang::Object obj  )  [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::AbstractObjectWriter.

void acdk::java::serialization::JavaObjectWriter::writeShortUtf IN(RString str  ) 
 

Writes without signature.

void acdk::java::serialization::JavaObjectWriter::writeString IN(RString str  )  [virtual]
 

From acdk::io::DataWriter.

Classes derived from AbstractObjectWriter should overwrite writeStringImpl.

Reimplemented from acdk::io::AbstractObjectWriter.

void acdk::java::serialization::JavaObjectWriter::writeUtf IN(RString str  ) 
 

Write with TC_STRING or TC_LONGSTRING signature.


Member Data Documentation

RJavaObjectReadWriteCache acdk::java::serialization::JavaObjectWriter::_prevObjects [private]