Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

File Class Reference

File access class. More...

Inheritance diagram for File:

Inheritance graph
[legend]
Collaboration diagram for File:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Public Attributes


Detailed Description

File access class.


Constructor & Destructor Documentation

void File String  path  ) 
 

Create new File object.

Parameters:
path File path. This can be also nsIURI object with "file" scheme.
Exceptions:
IOError Thrown on IO errors.


Member Function Documentation

void createDirectory int  perms  ) 
 

Creates new directory.

Parameters:
perms Unix permisions bits for new directory. By defaulr value of 0755 will be used. (optional)
Exceptions:
IOError Thrown on any IO error.

void flush  ) 
 

Flushes output buffer.

Exceptions:
IOError Thrown on any IO error.

void open String  charset,
int  mode,
int  perms
 

Open file.

Parameters:
charset Name of charset in which file is coded. Reader.read() and write() methods performs conversion in-the-fly. (optional)
mode Open mode, bit mask of MODE_* attributes.
perms Unix like file permisions code. Used on file creation. By default 0644 value is used. (optional).
Exceptions:
IOError Thrown on any IO error.

void remove bool  recursive  ) 
 

Remove file or directory.

Parameters:
recursive If set to true this operation will delete not empty directories with all it contents.
Exceptions:
IOError Thrown on any IO error.

void write String  data  ) 
 

Write data to file.

Parameters:
data Data to write.
Exceptions:
IOError Thrown on any IO error.
CharsetConvertError Thrown when charset conversion fails.


The documentation for this class was generated from the following file:
Generated on Tue Jan 4 01:03:50 2005 for JabberZilla by  doxygen 1.4.0