ScriptableIO: Difference between revisions

no edit summary
No edit summary
 
No edit summary
Line 128: Line 128:
   *                    or any other object which implements the
   *                    or any other object which implements the
   *                    nsIOutputStream interface.
   *                    nsIOutputStream interface.
  *  string - a string
   *
   *
   * The type indicates the type of writing that you wish to perform. It may
   * The type indicates the type of writing that you wish to perform. It may
Line 163: Line 162:
   *                content. If this mode is not used, the file will be
   *                content. If this mode is not used, the file will be
   *                truncated to 0 length.
   *                truncated to 0 length.
  *  seek - indicate that random access to the stream is desired, if the
  *          stream supports this. The returned stream will implement the
  *          nsISeekableStream interface. An error will occur if the stream
  *          does not support seeking. In general, seeking is supported for
  *          files and buffered streams.
   *  safe - when writing a file, writing is first performed to a temporary
   *  safe - when writing a file, writing is first performed to a temporary
   *          file and then when the stream's finish method is called, the
   *          file and then when the stream's finish method is called, the
287

edits