2005/5/9

     
 

class ByteToCharReader

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

acdk::io::ByteToCharReader Class Reference

#include <ByteToCharReader.h>

Inheritance diagram for acdk::io::ByteToCharReader:

acdk::io::AbstractCharReader acdk::lang::Object acdk::io::CharReader acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Filter translates from a Reader interface to a CharReader interface with the given decoder.

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

 ByteToCharReader (IN(RReader) in, IN(acdk::locale::RDecoder) decoder=Nil, IN(acdk::lang::Object) iolock=Nil)
virtual acdk::locale::RDecoder getDecoder ()
virtual void setDecoder (IN(acdk::locale::RDecoder) decoder)
virtual int readChar ()
 read one char.

virtual RString readString ()
 read until EOF and return as string

virtual void close ()
 closes the reader

virtual RReader getReader (IN(acdk::locale::REncoder) encoder=Nil)

Protected Attributes

acdk::locale::RDecoder _decoder
RReader _in


Constructor & Destructor Documentation

acdk::io::ByteToCharReader::ByteToCharReader IN(RReader in,
IN(acdk::locale::RDecoder decoder = Nil,
IN(acdk::lang::Object iolock = Nil
 


Member Function Documentation

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

closes the reader

Implements acdk::io::CharReader.

virtual acdk::locale::RDecoder acdk::io::ByteToCharReader::getDecoder  )  [inline, virtual]
 

virtual RReader acdk::io::ByteToCharReader::getReader IN(acdk::locale::REncoder encoder = Nil  )  [inline, virtual]
 

Parameters:
encoder will be ignore, instead uses own internal

Reimplemented from acdk::io::CharReader.

virtual int acdk::io::ByteToCharReader::readChar  )  [virtual]
 

read one char.

Returns:
-1 if end of file

Implements acdk::io::AbstractCharReader.

virtual RString acdk::io::ByteToCharReader::readString  )  [virtual]
 

read until EOF and return as string

Reimplemented from acdk::io::AbstractCharReader.

virtual void acdk::io::ByteToCharReader::setDecoder IN(acdk::locale::RDecoder decoder  )  [inline, virtual]
 


Member Data Documentation

acdk::locale::RDecoder acdk::io::ByteToCharReader::_decoder [protected]
 

RReader acdk::io::ByteToCharReader::_in [protected]