2005/5/9

     
 

class AbstractCharFilterReader

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

acdk::io::AbstractCharFilterReader Class Reference

#include <AbstractCharFilterReader.h>

Inheritance diagram for acdk::io::AbstractCharFilterReader:

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

Detailed Description

A filter interface for other CharReader.

API: ACDK

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


Public Member Functions

 AbstractCharFilterReader (IN(RCharReader) in, IN(acdk::lang::Object) iolock=Nil)
virtual int readChar ()
 read one char.

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

virtual void close ()
 closes the reader

RCharReader getIn ()
virtual RReader getReader (IN(acdk::locale::REncoder) encoder=Nil)
 returns the underlying reader


Protected Attributes

RCharReader _in


Constructor & Destructor Documentation

acdk::io::AbstractCharFilterReader::AbstractCharFilterReader IN(RCharReader in,
IN(acdk::lang::Object iolock = Nil
[inline]
 


Member Function Documentation

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

closes the reader

Implements acdk::io::CharReader.

Reimplemented in acdk::io::LineNumberCharReaderImpl, and acdk::io::PushbackCharReaderImpl.

RCharReader acdk::io::AbstractCharFilterReader::getIn  )  [inline]
 

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

returns the underlying reader

Parameters:
encoder uses to write characters. If Nil uses the system encoding

Reimplemented from acdk::io::CharReader.

virtual int acdk::io::AbstractCharFilterReader::readChar  )  [inline, virtual]
 

read one char.

Returns:
-1 if end of file

Implements acdk::io::AbstractCharReader.

Reimplemented in acdk::io::LineNumberCharReaderImpl, and acdk::io::PushbackCharReaderImpl.

virtual RString acdk::io::AbstractCharFilterReader::readString  )  [inline, virtual]
 

read until EOF and return as string

Reimplemented from acdk::io::AbstractCharReader.

Reimplemented in acdk::io::LineNumberCharReaderImpl, and acdk::io::PushbackCharReaderImpl.


Member Data Documentation

RCharReader acdk::io::AbstractCharFilterReader::_in [protected]