2005/5/9

     
 

class AbstractCharWriter

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

acdk::io::AbstractCharWriter Class Reference

#include <AbstractCharWriter.h>

Inheritance diagram for acdk::io::AbstractCharWriter:

acdk::lang::Object acdk::io::CharWriter acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::io::AbstractCharFilterWriter acdk::io::CharArrayWriter acdk::io::CharToByteWriter acdk::io::ConsoleCharWriter acdk::io::TeeCharWriter acdk::io::PrintWriter org::w3c::dom::DOMWriter List of all members.

Detailed Description

Reads character, not bytes Similar to Javas InputStreamReader.

Abstract implementation for CharReader. This class already implements the IO locking mechanism. API: ACDK

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


Public Member Functions

 AbstractCharWriter (IN(acdk::lang::Object) lock=Nil)
void lock ()
 lock the object instance.

void unlock ()
 unlock the object instance Note: Will be overwritten by acdk::io::Reader and acdk::io::Writer Note: if Unsynchronized or isStack is set, this call will have no effect

void setLock (IN(acdk::lang::Object) obj)
 API: enhanced Set the acdk::lang::Object, which will be used for synchronization.

acdk::lang::Object getLock ()
 API: enhanced.

virtual void writeChar (char c)=0
 write a single ASCII 7 bit character

virtual void writeChar (ucchar c)=0
 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 ()=0
 flush the writer

virtual void close ()=0
 close the writer


Protected Attributes

acdk::lang::Object _iolock


Constructor & Destructor Documentation

acdk::io::AbstractCharWriter::AbstractCharWriter IN(acdk::lang::Object lock = Nil  )  [inline]
 


Member Function Documentation

virtual void acdk::io::AbstractCharWriter::close  )  [pure virtual]
 

close the writer

Implements acdk::io::CharWriter.

Implemented in acdk::io::AbstractCharFilterWriter, acdk::io::CharArrayWriter, acdk::io::CharToByteWriter, acdk::io::ConsoleCharWriter, acdk::io::PrintWriter, and acdk::io::TeeCharWriter.

virtual void acdk::io::AbstractCharWriter::flush  )  [pure virtual]
 

flush the writer

Implements acdk::io::CharWriter.

Implemented in acdk::io::AbstractCharFilterWriter, acdk::io::CharArrayWriter, acdk::io::CharToByteWriter, acdk::io::ConsoleCharWriter, acdk::io::PrintWriter, and acdk::io::TeeCharWriter.

acdk::lang::Object acdk::io::AbstractCharWriter::getLock  )  [inline]
 

API: enhanced.

Returns:
the acdk::lang::Object, which will be used for synchronization

void acdk::io::AbstractCharWriter::lock  )  [inline, virtual]
 

lock the object instance.

Note: Will be overwritten by acdk::io::Reader and acdk::io::Writer Note: if Unsynchronized or isStack is set, this call will have no effect

Reimplemented from acdk::lang::ObjectBase.

void acdk::io::AbstractCharWriter::setLock IN(acdk::lang::Object obj  )  [inline]
 

API: enhanced Set the acdk::lang::Object, which will be used for synchronization.

void acdk::io::AbstractCharWriter::unlock  )  [inline, virtual]
 

unlock the object instance Note: Will be overwritten by acdk::io::Reader and acdk::io::Writer Note: if Unsynchronized or isStack is set, this call will have no effect

Reimplemented from acdk::lang::ObjectBase.

virtual void acdk::io::AbstractCharWriter::writeChar ucchar  c  )  [pure virtual]
 

write a single unicode character

Implements acdk::io::CharWriter.

Implemented in acdk::io::AbstractCharFilterWriter, acdk::io::CharArrayWriter, acdk::io::CharToByteWriter, and acdk::io::TeeCharWriter.

virtual void acdk::io::AbstractCharWriter::writeChar char  c  )  [pure virtual]
 

write a single ASCII 7 bit character

Implements acdk::io::CharWriter.

Implemented in acdk::io::AbstractCharFilterWriter, acdk::io::CharArrayWriter, acdk::io::CharToByteWriter, acdk::io::ConsoleCharWriter, and acdk::io::TeeCharWriter.

virtual void acdk::io::AbstractCharWriter::writeString IN(RString str  )  [inline, virtual]
 

write a string

Implements acdk::io::CharWriter.

Reimplemented in acdk::io::AbstractCharFilterWriter, acdk::io::CharArrayWriter, acdk::io::CharToByteWriter, acdk::io::ConsoleCharWriter, and acdk::io::TeeCharWriter.

virtual void acdk::io::AbstractCharWriter::writeString const ucchar cstr  )  [inline, virtual]
 

write unicode characters

Reimplemented from acdk::io::CharWriter.

Reimplemented in acdk::io::AbstractCharFilterWriter, acdk::io::CharArrayWriter, and acdk::io::CharToByteWriter.

virtual void acdk::io::AbstractCharWriter::writeString const char *  cstr  )  [inline, virtual]
 

write ASCII 7 bit characters

Reimplemented from acdk::io::CharWriter.

Reimplemented in acdk::io::AbstractCharFilterWriter, acdk::io::CharArrayWriter, and acdk::io::CharToByteWriter.


Member Data Documentation

acdk::lang::Object acdk::io::AbstractCharWriter::_iolock [protected]