2005/5/9

     
 

class FileReader

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

acdk::io::FileReader Class Reference

#include <FileReader.h>

Inheritance diagram for acdk::io::FileReader:

acdk::io::AbstractStorageReader acdk::io::AbstractReader acdk::io::Storage acdk::lang::Object acdk::io::Reader acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::lang::Process_PipeReader List of all members.

Detailed Description

Read bytes from a File.

API: Java

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


Public Member Functions

 FileReader (IN(RFile) file, bool binary=true)
 FileReader (IN(RString) fileName, bool binary=true)
 FileReader (IN(RFileDescriptor) fd, bool dupl=false)
virtual ~FileReader ()
virtual int available ()
 implements from Reader

virtual void close ()
 implements from Reader

virtual jlong seek (SeekPos seekrel, jlong seekpos)
 implements from Reader

virtual jlong skip (jlong n)
 implements from Reader

virtual int read ()
 implements from Reader

virtual int read (IN(RbyteArray) buffer, int offset=0, int len=-1)
 implements from Reader

virtual int read (byte *buffer, int offset, int len)
 implements from Reader

virtual void reset ()
 implements from Reader

virtual bool ready ()
 implements from Reader

virtual RString getDeviceName ()
 implements from Storage

virtual bool isWriteable ()
 implements from Storage

virtual bool isReadable ()
 implements from Storage

virtual RString readLine ()
virtual void open (IN(RFile) fname)
RFileDescriptor getFD ()
jlong fileLength ()
jlong tell ()

Private Attributes

RString _fname
FileReaderWriterImpl _fileImpl
bool _eof
 will set true if if EndOfFile will be reached


Constructor & Destructor Documentation

acdk::io::FileReader::FileReader IN(RFile file,
bool  binary = true
 

acdk::io::FileReader::FileReader IN(RString fileName,
bool  binary = true
 

acdk::io::FileReader::FileReader IN(RFileDescriptor fd,
bool  dupl = false
 

virtual acdk::io::FileReader::~FileReader  )  [virtual]
 


Member Function Documentation

virtual int acdk::io::FileReader::available  )  [virtual]
 

implements from Reader

Reimplemented from acdk::io::Reader.

Reimplemented in acdk::lang::Process_PipeReader.

virtual void acdk::io::FileReader::close  )  [virtual]
 

implements from Reader

Reimplemented from acdk::io::Reader.

jlong acdk::io::FileReader::fileLength  ) 
 

virtual RString acdk::io::FileReader::getDeviceName  )  [virtual]
 

implements from Storage

Implements acdk::io::AbstractStorageReader.

RFileDescriptor acdk::io::FileReader::getFD  ) 
 

virtual bool acdk::io::FileReader::isReadable  )  [virtual]
 

implements from Storage

Implements acdk::io::AbstractStorageReader.

virtual bool acdk::io::FileReader::isWriteable  )  [virtual]
 

implements from Storage

Implements acdk::io::AbstractStorageReader.

virtual void acdk::io::FileReader::open IN(RFile fname  )  [virtual]
 

virtual int acdk::io::FileReader::read byte buffer,
int  offset,
int  len
[virtual]
 

implements from Reader

Reimplemented from acdk::io::AbstractReader.

Reimplemented in acdk::lang::Process_PipeReader.

virtual int acdk::io::FileReader::read IN(RbyteArray buffer,
int  offset = 0,
int  len = -1
[virtual]
 

implements from Reader

Reimplemented from acdk::io::AbstractReader.

Reimplemented in acdk::lang::Process_PipeReader.

virtual int acdk::io::FileReader::read  )  [virtual]
 

implements from Reader

Reimplemented from acdk::io::AbstractReader.

Reimplemented in acdk::lang::Process_PipeReader.

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

Reimplemented in acdk::lang::Process_PipeReader.

virtual bool acdk::io::FileReader::ready  )  [virtual]
 

implements from Reader

Reimplemented from acdk::io::Reader.

Reimplemented in acdk::lang::Process_PipeReader.

virtual void acdk::io::FileReader::reset  )  [virtual]
 

implements from Reader

Implements acdk::io::AbstractReader.

virtual jlong acdk::io::FileReader::seek SeekPos  seekrel,
jlong  seekpos
[virtual]
 

implements from Reader

Reimplemented from acdk::io::AbstractReader.

virtual jlong acdk::io::FileReader::skip jlong  n  )  [inline, virtual]
 

implements from Reader

Reimplemented from acdk::io::AbstractReader.

jlong acdk::io::FileReader::tell  ) 
 


Member Data Documentation

bool acdk::io::FileReader::_eof [private]
 

will set true if if EndOfFile will be reached

FileReaderWriterImpl acdk::io::FileReader::_fileImpl [private]
 

RString acdk::io::FileReader::_fname [private]