2005/5/9

     
 

class InputReader

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

acdk::io::InputReader Class Reference

#include <InputReader.h>

Inheritance diagram for acdk::io::InputReader:

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

Detailed Description

The Class InputReader is the counterpart to PrintWriter.

It is just a Wrapper on a given Reader to read from Reader into standard structures.
API: ACDK<br/>

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


Public Member Functions

 InputReader (IN(RReader) in, IN(acdk::locale::RDecoder) decoder=Nil, IN(acdk::lang::Object) lock=Nil)
 InputReader (IN(RCharReader) in)
virtual RString readAString ()
virtual RString readLine ()
virtual int readInt ()
virtual bool readBoolean ()
virtual double readDouble ()
virtual jlong readLong ()
virtual int skipBytes (int len)
 reads len Bytes or until EOF is reached.

bool eof ()
RString readQuoted ()
 read C quoted string


Static Public Member Functions

acdk::lang::Object create_instance ()

Private Attributes

bool _isEof
 next call should return -1

bool _eofReturned
 already returned eof -> throw EOF ex

bool _skipNextNl


Constructor & Destructor Documentation

acdk::io::InputReader::InputReader IN(RReader in,
IN(acdk::locale::RDecoder decoder = Nil,
IN(acdk::lang::Object lock = Nil
 

acdk::io::InputReader::InputReader IN(RCharReader in  ) 
 


Member Function Documentation

acdk::lang::Object acdk::io::InputReader::create_instance  )  [inline, static]
 

Reimplemented from acdk::lang::Object.

bool acdk::io::InputReader::eof  )  [inline]
 

virtual RString acdk::io::InputReader::readAString  )  [virtual]
 

Returns:
RString read until isspace.

virtual bool acdk::io::InputReader::readBoolean  )  [virtual]
 

Returns:
bool read bool

virtual double acdk::io::InputReader::readDouble  )  [virtual]
 

Returns:
double read double

virtual int acdk::io::InputReader::readInt  )  [virtual]
 

Returns:
int reads int

virtual RString acdk::io::InputReader::readLine  )  [virtual]
 

Returns:
RString reads until EOL

virtual jlong acdk::io::InputReader::readLong  )  [virtual]
 

Returns:
jlong reads jlong

RString acdk::io::InputReader::readQuoted  ) 
 

read C quoted string

See also:
PrintWriter::printQuoted

virtual int acdk::io::InputReader::skipBytes int  len  )  [virtual]
 

reads len Bytes or until EOF is reached.

Returns:
number of skiped bytes


Member Data Documentation

bool acdk::io::InputReader::_eofReturned [private]
 

already returned eof -> throw EOF ex

bool acdk::io::InputReader::_isEof [private]
 

next call should return -1

bool acdk::io::InputReader::_skipNextNl [private]