2005/5/9

     
 

class CharArrayWriter

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

acdk::io::CharArrayWriter Class Reference

#include <CharArrayWriter.h>

Inheritance diagram for acdk::io::CharArrayWriter:

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

Detailed Description

Reads from an uccharArray API: Java.

Author:
Roger Rene Kommer
Version:
Revision
1.18
Date:
Date
2005/04/09 19:26:44
See also:
InterfaceXXX
Bug:
Incomplete, Untested, etc.


Public Member Functions

 CharArrayWriter (int initialSize=64, IN(acdk::lang::Object) iolock=Nil)
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

void reset ()
RuccharArray tocharArray ()
int size ()
int capacity ()
RString toString ()
 return a string representation of this object Object::toString() return getName() by default

void ensureCapacity (int newSize)
void flush ()
 flush the writer

void close ()
 close the writer


Public Attributes

RuccharArray _sb
int _writePos


Constructor & Destructor Documentation

acdk::io::CharArrayWriter::CharArrayWriter int  initialSize = 64,
IN(acdk::lang::Object iolock = Nil
[inline]
 


Member Function Documentation

int acdk::io::CharArrayWriter::capacity  )  [inline]
 

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

close the writer

Implements acdk::io::AbstractCharWriter.

void acdk::io::CharArrayWriter::ensureCapacity int  newSize  )  [inline]
 

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

flush the writer

Implements acdk::io::AbstractCharWriter.

void acdk::io::CharArrayWriter::reset  )  [inline]
 

int acdk::io::CharArrayWriter::size  )  [inline]
 

RuccharArray acdk::io::CharArrayWriter::tocharArray  )  [inline]
 

RString acdk::io::CharArrayWriter::toString  )  [inline, virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.

virtual void acdk::io::CharArrayWriter::writeChar ucchar  c  )  [inline, virtual]
 

write a single unicode character

Implements acdk::io::AbstractCharWriter.

virtual void acdk::io::CharArrayWriter::writeChar char  c  )  [inline, virtual]
 

write a single ASCII 7 bit character

Implements acdk::io::AbstractCharWriter.

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

write a string

Reimplemented from acdk::io::AbstractCharWriter.

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

write unicode characters

Reimplemented from acdk::io::AbstractCharWriter.

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

write ASCII 7 bit characters

Reimplemented from acdk::io::AbstractCharWriter.


Member Data Documentation

RuccharArray acdk::io::CharArrayWriter::_sb
 

int acdk::io::CharArrayWriter::_writePos