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.

nsIFileOutputStream

IID:e6f68040-c7ec-11d3-8cda-0060b0fc14a3
Inherits From:nsIOutputStream

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-output-stream;1"].
            createInstance(Components.interfaces.nsIFileOutputStream);

This interface is implemented by the following components:


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 write to (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_WRONLY | PR_CREATE_FILE | PR_TRUNCATE)
perm: file mode bits listed in prio.h or -1 to use the default permissions (0664)
behaviorFlags: flags specifying various behaviors of the class (currently none supported)

References

This interface is passed as an argument to the following methods:

nsIURLFetcher.fireURLRequest, nsIURLFetcher.initialize

Reference documentation is generated from Mozilla's source.