nsIOutputStream
Last changed in Gecko 1.7 void init(in nsIFile file, in long ioFlags, in long perm, in long behaviorFlags); |
Constant | Value | Description |
DEFER_OPEN |
1<<0 |
See the same constant in nsIFileInputStream . The deferred open will be performed when one of the following is called:
Note: Using this flag results in the file not being opened during the call to
init() . This means that any errors that might happen when this flag is not set would happen during the first write, and if the file is to be created, it will not appear on the disk until the first write. |
void init( in nsIFile file, in long ioFlags, in long perm, in long behaviorFlags );
file
nsILocalFile
)ioFlags
-1
to open the file in default mode (PR_WRONLY
| PR_CREATE_FILE
| PR_TRUNCATE
).perm
-1
the default permissions (0664) will be used.behaviorFlags