2005/5/9

     
 

class CharToByteWriter

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

acdk::io::CharToByteWriter Class Reference

#include <CharToByteWriter.h>

Inheritance diagram for acdk::io::CharToByteWriter:

acdk::io::AbstractCharWriter acdk::lang::Object acdk::io::CharWriter acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

CharWriter interface which writes the encoded bytes in a given Writer.

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


Public Member Functions

 CharToByteWriter (IN(RWriter) out, IN(acdk::locale::REncoder) encoder=Nil, IN(acdk::lang::Object) iolock=Nil)
acdk::locale::REncoder getEncoder ()
void setEncoder (IN(acdk::locale::REncoder) encoder)
virtual void writeChar (char c)
 write a single ASCII 7 bit character

virtual void writeChar (ucchar c)
 write a single unicode character

virtual void writeString (const char *cstr)
 write ASCII 7 bit characters

virtual void writeString (const ucchar *cstr)
 write unicode characters

virtual void writeString (IN(RString) str)
 write a string

virtual void flush ()
 flush the writer

virtual void close ()
 close the writer

virtual RWriter getWriter (IN(acdk::locale::RDecoder) decoder=Nil)
 Get writer from this CharWriter.


Protected Attributes

acdk::locale::REncoder _encoder
RWriter _out


Constructor & Destructor Documentation

acdk::io::CharToByteWriter::CharToByteWriter IN(RWriter out,
IN(acdk::locale::REncoder encoder = Nil,
IN(acdk::lang::Object iolock = Nil
 


Member Function Documentation

virtual void acdk::io::CharToByteWriter::close  )  [inline, virtual]
 

close the writer

Implements acdk::io::AbstractCharWriter.

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

flush the writer

Implements acdk::io::AbstractCharWriter.

acdk::locale::REncoder acdk::io::CharToByteWriter::getEncoder  )  [inline]
 

virtual RWriter acdk::io::CharToByteWriter::getWriter IN(acdk::locale::RDecoder decoder = Nil  )  [inline, virtual]
 

Get writer from this CharWriter.

Parameters:
decoder will be ignored in this case

Reimplemented from acdk::io::CharWriter.

void acdk::io::CharToByteWriter::setEncoder IN(acdk::locale::REncoder encoder  )  [inline]
 

virtual void acdk::io::CharToByteWriter::writeChar ucchar  c  )  [virtual]
 

write a single unicode character

Implements acdk::io::AbstractCharWriter.

virtual void acdk::io::CharToByteWriter::writeChar char  c  )  [virtual]
 

write a single ASCII 7 bit character

Implements acdk::io::AbstractCharWriter.

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

write a string

Reimplemented from acdk::io::AbstractCharWriter.

virtual void acdk::io::CharToByteWriter::writeString const ucchar cstr  )  [virtual]
 

write unicode characters

Reimplemented from acdk::io::AbstractCharWriter.

virtual void acdk::io::CharToByteWriter::writeString const char *  cstr  )  [virtual]
 

write ASCII 7 bit characters

Reimplemented from acdk::io::AbstractCharWriter.


Member Data Documentation

acdk::locale::REncoder acdk::io::CharToByteWriter::_encoder [protected]
 

RWriter acdk::io::CharToByteWriter::_out [protected]