2005/5/9

     
 

class DataWriter

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

acdk::io::DataWriter Class Reference

#include <DataWriter.h>

Inheritance diagram for acdk::io::DataWriter:

acdk::io::FilterWriter acdk::io::ASCIIDataWriter acdk::io::BinaryDataWriter acdk::io::ObjectWriter acdk::io::RandomAccessFile acdk::io::AbstractObjectWriter acdk::net::srfsys::FilterObjectWriter acdkx::orb::CDRObjectWriter acdk::io::BinaryObjectWriter acdk::xml::XMLObjectWriter acdk::net::srfsys::ObjectLogWriter acdkx::orb::OrbOutputStream acdk::java::serialization::JavaObjectWriter acdkx::orb::ReplyOutputStream acdkx::orb::RequestOutputStream List of all members.

Detailed Description

Interface for writing basic data types.

API: ACDK

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.13
Date:
Date
2005/04/09 19:26:44


Public Member Functions

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

overwrite void setOut (IN(RWriter) writer)=0
overwrite RStorage getStorage ()=0
overwrite RWriter getStorageWriter ()=0
 returns the unfiltered Writer

virtual void writeBoolean (bool b)=0
virtual void writeChar (char b)=0
virtual void writeUcChar (uc2char b)=0
virtual void writeShort (short b)=0
virtual void writeInt (int b)=0
virtual void writeLong (jlong b)=0
virtual void writeFloat (float b)=0
virtual void writeDouble (double b)=0
void write (const byte *cstr, int offset, int len)
virtual void write (IN(RbyteArray) array, int offset=0, int len=-1)=0
 writes to the unterlying data stream

virtual void writeString (IN(RString) str)=0
virtual void writeOpaque (IN(RbyteArray) array)
 writes the data as opaque data.


Member Function Documentation

overwrite void acdk::io::DataWriter::flush  )  [pure virtual]
 

Implements acdk::io::FilterWriter.

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, and acdkx::orb::CDRObjectWriter.

overwrite RStorage acdk::io::DataWriter::getStorage  )  [pure virtual]
 

Implements acdk::io::FilterWriter.

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, and acdkx::orb::CDRObjectWriter.

overwrite RWriter acdk::io::DataWriter::getStorageWriter  )  [pure virtual]
 

returns the unfiltered Writer

Implements acdk::io::FilterWriter.

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, and acdkx::orb::CDRObjectWriter.

overwrite void acdk::io::DataWriter::setOut IN(RWriter writer  )  [pure virtual]
 

Implements acdk::io::FilterWriter.

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::write IN(RbyteArray array,
int  offset = 0,
int  len = -1
[pure virtual]
 

writes to the unterlying data stream

Implements acdk::io::FilterWriter.

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

void acdk::io::DataWriter::write const byte cstr,
int  offset,
int  len
[inline, virtual]
 

Reimplemented from acdk::io::FilterWriter.

Reimplemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, and acdkx::orb::CDRObjectWriter.

overwrite void acdk::io::DataWriter::write byte  c  )  [pure virtual]
 

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

Implements acdk::io::FilterWriter.

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::writeBoolean bool  b  )  [pure virtual]
 

Implemented in acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::writeChar char  b  )  [pure virtual]
 

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::writeDouble double  b  )  [pure virtual]
 

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::writeFloat float  b  )  [pure virtual]
 

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::writeInt int  b  )  [pure virtual]
 

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::writeLong jlong  b  )  [pure virtual]
 

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::writeOpaque IN(RbyteArray array  )  [inline, virtual]
 

writes the data as opaque data.

DataWriter may apply some encoding

Reimplemented in acdk::io::AbstractObjectWriter, acdk::io::BinaryDataWriter, acdk::net::srfsys::FilterObjectWriter, and acdk::xml::XMLObjectWriter.

virtual void acdk::io::DataWriter::writeShort short  b  )  [pure virtual]
 

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::writeString IN(RString str  )  [pure virtual]
 

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::java::serialization::JavaObjectWriter, acdk::net::srfsys::FilterObjectWriter, and acdkx::orb::CDRObjectWriter.

virtual void acdk::io::DataWriter::writeUcChar uc2char  b  )  [pure virtual]
 

Implemented in acdk::io::AbstractObjectWriter, acdk::io::ASCIIDataWriter, acdk::io::BinaryDataWriter, acdk::io::BinaryObjectWriter, acdk::io::ObjectWriter, acdk::io::RandomAccessFile, acdk::net::srfsys::FilterObjectWriter, acdk::xml::XMLObjectWriter, and acdkx::orb::CDRObjectWriter.