WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.
nsIFileInputStream
| IID: | e3d56a20-c7ec-11d3-8cda-0060b0fc14a3 |
| Inherits From: | nsIInputStream |
An input stream that allows you to read from a file.
This interface is intended to be used as an instance. To create an object implementing this interface:
var obj = Components.classes["@mozilla.org/network/file-input-stream;1"].
createInstance(Components.interfaces.nsIFileInputStream);This interface is implemented by the following components:
Constants
Methods
void init ( nsIFile file , PRInt32 ioFlags , PRInt32 perm , PRInt32 behaviorFlags )
void init ( nsIFile file , PRInt32 ioFlags , PRInt32 perm , PRInt32 behaviorFlags )
- Arguments:
- file: file to read from (must QI to nsILocalFile)
- ioFlags: file open flags listed in prio.h (see PR_Open documentation) or -1 to open the file in default mode (PR_RDONLY).
- perm: file mode bits listed in prio.h or -1 to use the default value (0)
- behaviorFlags: flags specifying various behaviors of the class (see enumerations in the class)
Reference documentation is generated from Mozilla's source.
