2005/5/9

     
 

class CharReader

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

acdk::io::CharReader Class Reference

#include <CharReader.h>

Inheritance diagram for acdk::io::CharReader:

acdk::io::AbstractCharReader acdk::io::CharArrayReader acdk::io::LineNumberCharReader acdk::io::PushbackCharReader acdk::io::AbstractCharFilterReader acdk::io::ByteToCharReader acdk::io::ConsoleCharReader acdk::io::StringReader acdk::cfgscript::ScriptSource acdk::io::LineNumberCharReaderImpl acdk::cfgscript::ScriptSource acdk::io::PushbackCharReaderImpl List of all members.

Detailed Description

Reads character, not bytes Similar to Javas InputStreamReader.


Public Member Functions

virtual int readChar ()=0
 read one char.

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

virtual void close ()=0
 closes the reader

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


Member Function Documentation

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

closes the reader

Implemented in acdk::cfgscript::ScriptSource, acdk::io::AbstractCharFilterReader, acdk::io::ByteToCharReader, acdk::io::CharArrayReader, acdk::io::ConsoleCharReader, acdk::io::LineNumberCharReader, acdk::io::LineNumberCharReaderImpl, acdk::io::PushbackCharReader, acdk::io::PushbackCharReaderImpl, and acdk::io::StringReader.

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

returns the underlying reader

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

Reimplemented in acdk::cfgscript::ScriptSource, acdk::io::AbstractCharFilterReader, acdk::io::ByteToCharReader, and acdk::io::ConsoleCharReader.

virtual int acdk::io::CharReader::readChar  )  [pure virtual]
 

read one char.

Returns:
-1 if end of file

Implemented in acdk::cfgscript::ScriptSource, acdk::io::AbstractCharFilterReader, acdk::io::AbstractCharReader, acdk::io::ByteToCharReader, acdk::io::CharArrayReader, acdk::io::ConsoleCharReader, acdk::io::LineNumberCharReader, acdk::io::LineNumberCharReaderImpl, acdk::io::PushbackCharReader, acdk::io::PushbackCharReaderImpl, and acdk::io::StringReader.

virtual RString acdk::io::CharReader::readString  )  [pure virtual]
 

read until EOF and return as string

Implemented in acdk::cfgscript::ScriptSource, acdk::io::AbstractCharFilterReader, acdk::io::AbstractCharReader, acdk::io::ByteToCharReader, acdk::io::CharArrayReader, acdk::io::LineNumberCharReader, acdk::io::LineNumberCharReaderImpl, acdk::io::PushbackCharReader, acdk::io::PushbackCharReaderImpl, and acdk::io::StringReader.