2005/5/9

     
 

class ByteToCharWriter

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

acdk::io::ByteToCharWriter Class Reference

#include <ByteToCharWriter.h>

Inheritance diagram for acdk::io::ByteToCharWriter:

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

Detailed Description

Reads from a CharReader and encodes it to a Reader.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.6
Date:
Date
2005/02/05 10:44:53


Public Member Functions

 ByteToCharWriter (IN(RCharWriter) charWriter, IN(acdk::locale::RDecoder) dec=Nil, IN(acdk::lang::Object) iolock=Nil)
virtual void flush ()
virtual void close ()
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 write (const byte *cstr, int offset, int len)
void _overFlow ()

Private Attributes

RCharWriter _cout
acdk::locale::RDecoder _decoder
LittleBytesReader _buf
int _maxBytesPerChar


Constructor & Destructor Documentation

acdk::io::ByteToCharWriter::ByteToCharWriter (  IN(RCharWriter)  charWriter,
IN(acdk::locale::RDecoder)  dec = Nil,
IN(acdk::lang::Object)  iolock = Nil
)  [inline]
 


Member Function Documentation

void acdk::io::ByteToCharWriter::_overFlow (   )  [inline]
 

virtual void acdk::io::ByteToCharWriter::close (   )  [inline, virtual]
 

Implements acdk::io::AbstractWriter.

virtual void acdk::io::ByteToCharWriter::flush (   )  [inline, virtual]
 

Implements acdk::io::AbstractWriter.

virtual void acdk::io::ByteToCharWriter::write (  const byte *  cstr,
int  offset,
int  len
)  [inline, virtual]
 

Reimplemented from acdk::io::AbstractWriter.

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

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

Reimplemented from acdk::io::AbstractWriter.

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

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

Implements acdk::io::AbstractWriter.


Member Data Documentation

LittleBytesReader acdk::io::ByteToCharWriter::_buf [private]
 

RCharWriter acdk::io::ByteToCharWriter::_cout [private]
 

acdk::locale::RDecoder acdk::io::ByteToCharWriter::_decoder [private]
 

int acdk::io::ByteToCharWriter::_maxBytesPerChar [private]