2005/5/9

     
 

class AbstractFileImpl

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

acdk::io::AbstractFileImpl Class Reference

#include <FileImpl.h>

Inheritance diagram for acdk::io::AbstractFileImpl:

acdk::lang::Object acdk::io::FileImpl acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

implements a abstract FileImpl If not derived from other class this implementation stands for a file, which does not exists


Public Member Functions

 AbstractFileImpl (IN(RFileSystem) fsys, IN(RString) fpath)
 AbstractFileImpl (IN(RFileSystem) fsys, IN(RString) path, IN(RString) dir, IN(RString) name)
virtual RString getCanonicalPath ()
 corresponding to File

virtual RString getAbsolutePath ()
virtual RString getName ()
virtual RString getPath ()
virtual RFile getParentFile ()
virtual RFile makeChild (IN(RString) subfile)
virtual bool isAbsolute ()
virtual bool exists ()
virtual bool canRead ()
virtual bool canWrite ()
virtual bool isDirectory ()
virtual bool isFile ()
virtual bool isHidden ()
virtual jlong length ()
virtual bool createNewFile ()
virtual bool deleteFile ()
virtual RStringArray list (IN(RFilenameFilter) filter=Nil, int listFlags=FileListBoth)
virtual RFileArray listFiles (IN(RFileFilter) filter=Nil, int listFlags=FileListBoth)
virtual jlong lastModified ()
virtual jlong fileCreated ()
virtual bool mkdir (int mode=0777)
virtual bool renameTo (IN(RFile) dest)
virtual bool setLastModified (jlong time)
virtual bool setFileCreated (jlong time)
virtual RFileInfo getFileInfo ()
 return File Info using other methods provided by FileImpl for performance reason this method should be implemented

virtual bool setFileAttributes (int mask, int flags)
 by default does nothing

virtual bool setFileFlags (int flags)
virtual RReader getReader ()
virtual RWriter getWriter ()
virtual RFileSystem getFileSystem ()

Protected Member Functions

void _throwFileNotExits (IN(RString) method)

Protected Attributes

RFileSystem _fsys
RString _filePath
RString _dir
RString _name


Constructor & Destructor Documentation

acdk::io::AbstractFileImpl::AbstractFileImpl IN(RFileSystem fsys,
IN(RString fpath
 

acdk::io::AbstractFileImpl::AbstractFileImpl IN(RFileSystem fsys,
IN(RString path,
IN(RString dir,
IN(RString name
[inline]
 


Member Function Documentation

void acdk::io::AbstractFileImpl::_throwFileNotExits IN(RString method  )  [inline, protected]
 

virtual bool acdk::io::AbstractFileImpl::canRead  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::canWrite  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::createNewFile  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::deleteFile  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::exists  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual jlong acdk::io::AbstractFileImpl::fileCreated  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual RString acdk::io::AbstractFileImpl::getAbsolutePath  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual RString acdk::io::AbstractFileImpl::getCanonicalPath  )  [inline, virtual]
 

corresponding to File

Implements acdk::io::FileImpl.

virtual RFileInfo acdk::io::AbstractFileImpl::getFileInfo  )  [inline, virtual]
 

return File Info using other methods provided by FileImpl for performance reason this method should be implemented

Reimplemented from acdk::io::FileImpl.

virtual RFileSystem acdk::io::AbstractFileImpl::getFileSystem  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual RString acdk::io::AbstractFileImpl::getName  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual RFile acdk::io::AbstractFileImpl::getParentFile  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual RString acdk::io::AbstractFileImpl::getPath  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual RReader acdk::io::AbstractFileImpl::getReader  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual RWriter acdk::io::AbstractFileImpl::getWriter  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::isAbsolute  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::isDirectory  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::isFile  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::isHidden  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual jlong acdk::io::AbstractFileImpl::lastModified  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual jlong acdk::io::AbstractFileImpl::length  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual RStringArray acdk::io::AbstractFileImpl::list IN(RFilenameFilter filter = Nil,
int  listFlags = FileListBoth
[inline, virtual]
 

Reimplemented from acdk::io::FileImpl.

virtual RFileArray acdk::io::AbstractFileImpl::listFiles IN(RFileFilter filter = Nil,
int  listFlags = FileListBoth
[inline, virtual]
 

Reimplemented from acdk::io::FileImpl.

virtual RFile acdk::io::AbstractFileImpl::makeChild IN(RString subfile  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::mkdir int  mode = 0777  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::renameTo IN(RFile dest  )  [inline, virtual]
 

Implements acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::setFileAttributes int  mask,
int  flags
[inline, virtual]
 

by default does nothing

See also:
acdk::io::File::setFileAttributes

Reimplemented from acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::setFileCreated jlong  time  )  [inline, virtual]
 

Reimplemented from acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::setFileFlags int  flags  )  [inline, virtual]
 

Reimplemented from acdk::io::FileImpl.

virtual bool acdk::io::AbstractFileImpl::setLastModified jlong  time  )  [inline, virtual]
 

Implements acdk::io::FileImpl.


Member Data Documentation

RString acdk::io::AbstractFileImpl::_dir [protected]
 

RString acdk::io::AbstractFileImpl::_filePath [protected]
 

RFileSystem acdk::io::AbstractFileImpl::_fsys [protected]
 

RString acdk::io::AbstractFileImpl::_name [protected]