2005/5/9

     
 

class ASCIIDataWriter

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

acdk::io::ASCIIDataWriter Class Reference

#include <ASCIIDataWriter.h>

Inheritance diagram for acdk::io::ASCIIDataWriter:

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

Detailed Description

Filter to writes Data in ASCII format.

Overtakes the role of java.io.DataOutputStream API: ACDK

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.15
Date:
Date
2005/03/01 10:12:47


Public Member Functions

 ASCIIDataWriter (IN(RWriter) out)
virtual ~ASCIIDataWriter ()
void flush ()
void setOut (IN(RWriter) writer)
RStorage getStorage ()
 Gets the storage reader.

RWriter getStorageWriter ()
 returns the unfiltered Writer

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)
 default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);

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)


Constructor & Destructor Documentation

acdk::io::ASCIIDataWriter::ASCIIDataWriter IN(RWriter out  )  [inline]
 

virtual acdk::io::ASCIIDataWriter::~ASCIIDataWriter  )  [inline, virtual]
 


Member Function Documentation

void acdk::io::ASCIIDataWriter::flush  )  [inline, virtual]
 

Reimplemented from acdk::io::AbstractFilterWriter.

RStorage acdk::io::ASCIIDataWriter::getStorage  )  [inline, virtual]
 

Gets the storage reader.

If this contains an FilterReader instead of a Storage, the storage reader of this filter reader will be returned (recursive).

Reimplemented from acdk::io::AbstractFilterWriter.

RWriter acdk::io::ASCIIDataWriter::getStorageWriter  )  [inline, virtual]
 

returns the unfiltered Writer

Reimplemented from acdk::io::AbstractFilterWriter.

void acdk::io::ASCIIDataWriter::setOut IN(RWriter writer  )  [inline, virtual]
 

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdk::io::ASCIIDataWriter::write IN(RbyteArray ch,
int  offset = 0,
int  len = -1
[virtual]
 

default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdk::io::ASCIIDataWriter::write byte  c  )  [inline, virtual]
 

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

Reimplemented from acdk::io::AbstractFilterWriter.

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

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdk::io::ASCIIDataWriter::writeBoolean bool  b  )  [virtual]
 

Implements acdk::io::DataWriter.

virtual void acdk::io::ASCIIDataWriter::writeChar char  b  )  [virtual]
 

Implements acdk::io::DataWriter.

virtual void acdk::io::ASCIIDataWriter::writeDouble double  b  )  [virtual]
 

Implements acdk::io::DataWriter.

virtual void acdk::io::ASCIIDataWriter::writeFloat float  b  )  [virtual]
 

Implements acdk::io::DataWriter.

virtual void acdk::io::ASCIIDataWriter::writeInt int  b  )  [virtual]
 

Implements acdk::io::DataWriter.

virtual void acdk::io::ASCIIDataWriter::writeLong jlong  b  )  [virtual]
 

Implements acdk::io::DataWriter.

virtual void acdk::io::ASCIIDataWriter::writeShort short  b  )  [virtual]
 

Implements acdk::io::DataWriter.

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

Implements acdk::io::DataWriter.

virtual void acdk::io::ASCIIDataWriter::writeUcChar uc2char  b  )  [virtual]
 

Implements acdk::io::DataWriter.