Apache log4cxx  Version 0.13.0
log4cxx::helpers::ObjectOutputStream Class Reference

Emulates java serialization. More...

#include <objectoutputstream.h>

Inheritance diagram for log4cxx::helpers::ObjectOutputStream:
log4cxx::helpers::Object

Public Types

enum  { STREAM_MAGIC = 0xACED }
 
enum  { STREAM_VERSION = 5 }
 
enum  {
  TC_NULL = 0x70, TC_REFERENCE = 0x71, TC_CLASSDESC = 0x72, TC_OBJECT = 0x73,
  TC_STRING = 0x74, TC_ARRAY = 0x75, TC_CLASS = 0x76, TC_BLOCKDATA = 0x77,
  TC_ENDBLOCKDATA = 0x78, TC_RESET = 0x79
}
 
enum  { SC_WRITE_METHOD = 0x01, SC_SERIALIZABLE = 0x02 }
 

Public Member Functions

 ObjectOutputStream (OutputStreamPtr os, Pool &p)
 
virtual ~ObjectOutputStream ()
 
void close (Pool &p)
 
void flush (Pool &p)
 
void reset (Pool &p)
 
void writeObject (const LogString &, Pool &p)
 
void writeUTFString (const std::string &, Pool &p)
 
void writeObject (const MDC::Map &mdc, Pool &p)
 
void writeInt (int val, Pool &p)
 
void writeLong (log4cxx_time_t val, Pool &p)
 
void writeProlog (const char *className, int classDescIncrement, char *bytes, size_t len, Pool &p)
 
void writeNull (Pool &p)
 
void writeByte (char val, Pool &p)
 
void writeBytes (const char *bytes, size_t len, Pool &p)
 
- Public Member Functions inherited from log4cxx::helpers::Object
virtual ~Object ()
 
virtual bool instanceof (const Class &clazz) const =0
 
virtual const void * cast (const Class &clazz) const =0
 

Detailed Description

Emulates java serialization.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
STREAM_MAGIC 

◆ anonymous enum

anonymous enum
Enumerator
STREAM_VERSION 

◆ anonymous enum

anonymous enum
Enumerator
TC_NULL 
TC_REFERENCE 
TC_CLASSDESC 
TC_OBJECT 
TC_STRING 
TC_ARRAY 
TC_CLASS 
TC_BLOCKDATA 
TC_ENDBLOCKDATA 
TC_RESET 

◆ anonymous enum

anonymous enum
Enumerator
SC_WRITE_METHOD 
SC_SERIALIZABLE 

Constructor & Destructor Documentation

◆ ObjectOutputStream()

log4cxx::helpers::ObjectOutputStream::ObjectOutputStream ( OutputStreamPtr  os,
Pool p 
)

◆ ~ObjectOutputStream()

virtual log4cxx::helpers::ObjectOutputStream::~ObjectOutputStream ( )
virtual

Member Function Documentation

◆ close()

void log4cxx::helpers::ObjectOutputStream::close ( Pool p)

◆ flush()

void log4cxx::helpers::ObjectOutputStream::flush ( Pool p)

◆ reset()

void log4cxx::helpers::ObjectOutputStream::reset ( Pool p)

◆ writeByte()

void log4cxx::helpers::ObjectOutputStream::writeByte ( char  val,
Pool p 
)

◆ writeBytes()

void log4cxx::helpers::ObjectOutputStream::writeBytes ( const char *  bytes,
size_t  len,
Pool p 
)

◆ writeInt()

void log4cxx::helpers::ObjectOutputStream::writeInt ( int  val,
Pool p 
)

◆ writeLong()

void log4cxx::helpers::ObjectOutputStream::writeLong ( log4cxx_time_t  val,
Pool p 
)

◆ writeNull()

void log4cxx::helpers::ObjectOutputStream::writeNull ( Pool p)

◆ writeObject() [1/2]

void log4cxx::helpers::ObjectOutputStream::writeObject ( const LogString ,
Pool p 
)

◆ writeObject() [2/2]

void log4cxx::helpers::ObjectOutputStream::writeObject ( const MDC::Map mdc,
Pool p 
)

◆ writeProlog()

void log4cxx::helpers::ObjectOutputStream::writeProlog ( const char *  className,
int  classDescIncrement,
char *  bytes,
size_t  len,
Pool p 
)

◆ writeUTFString()

void log4cxx::helpers::ObjectOutputStream::writeUTFString ( const std::string &  ,
Pool p 
)

The documentation for this class was generated from the following file: