Jive reference manual
List of all members | Public Member Functions | Protected Member Functions
jem::io::FileReader Class Reference

#include <jem/io/FileReader.h>

Inheritance diagram for jem::io::FileReader:
Inheritance graph

Public Member Functions

 FileReader (const String &name, int flags=0)
 
 FileReader (Ref< FileStream > fs)
 
 FileReader (const Self &rhs)
 
virtual Ref< Readerdup ()
 
Ref< FileStreamgetFileStream () const
 
- Public Member Functions inherited from jem::io::InputStreamReader
 InputStreamReader (Ref< InputStream > in)
 
 InputStreamReader (const Self &rhs)
 
virtual void close ()
 Closes this input stream. More...
 
virtual idx_t poll (const Time &timeout)
 
virtual int read ()
 Extracts the next character from this input stream. More...
 
virtual idx_t read (char *buf, idx_t n)
 
virtual void pushBack (int c)
 Pushes back a previously read character. More...
 
- Public Member Functions inherited from jem::io::Reader
virtual void lock ()
 Locks this input stream. More...
 
virtual void unlock ()
 Unlocks this input stream. More...
 
virtual int poll ()
 Returns the number of characters that can read without blocking. More...
 
virtual int read (char *buf, int n)
 Extracts multiple characters from this input stream. More...
 
virtual int readUntil (char *buf, int n, int delim)
 Reads characters until a specified character. More...
 
virtual void skipUntil (int delim)
 Skips characters until a specified character. More...
 
virtual void skipWhite ()
 Skips over white space. More...
 
virtual int skip (int n)
 Skips over a specified number of characters. More...
 
String readLine ()
 Reads the next line from this input stream. More...
 
virtual byte parseByte ()
 Reads a byte from this input stream. More...
 
virtual bool parseBool ()
 Reads a boolean from this input stream. More...
 
virtual long parseInt ()
 Reads a long integer from this input stream. More...
 
virtual double parseFloat ()
 Reads a double from this input stream. More...
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Protected Member Functions

virtual ~FileReader ()
 
- Protected Member Functions inherited from jem::io::InputStreamReader
 InputStreamReader ()
 
virtual ~InputStreamReader ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 
- Protected Member Functions inherited from jem::Interface
virtual ~Interface ()
 Empty destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 
- Protected Attributes inherited from jem::io::InputStreamReader
Ref< InputStreaminput_
 

Constructor & Destructor Documentation

jem::io::FileReader::FileReader ( const String name,
int  flags = 0 
)
explicit
jem::io::FileReader::FileReader ( Ref< FileStream fs)
explicit
jem::io::FileReader::FileReader ( const Self &  rhs)
virtual jem::io::FileReader::~FileReader ( )
protectedvirtual

Member Function Documentation

virtual Ref<Reader> jem::io::FileReader::dup ( )
virtual

Reimplemented from jem::io::InputStreamReader.

Ref<FileStream> jem::io::FileReader::getFileStream ( ) const