An output stream that lets you stream to a file.
file | file to write to |
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) |
See the same constant in nsIFileInputStream. The deferred open will
be performed when one of the following is called:
- Seek
- Tell
- SetEOF
- Write
- Flush
@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, then it will not
appear on the disk until the first write.