ScriptableIO: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 70: Line 70:
   */
   */
   nsIFile newFileWithPath(in AString filepath);
   nsIFile newFileWithPath(in AString filepath);
  /**
  * Creates a URI object which implements nsIURI. The url argument may either
  * be a string or a file.
  *
  * @param url the url to create
  * @returns a new nsIURI object
  * @throws NS_ERROR_INVALID_ARG when aUri is null
  */
  nsIURI newURI(in nsIVariant aUri);


   /**
   /**
Line 108: Line 118:
   * The type may also be a null string to indicate no special type of
   * The type may also be a null string to indicate no special type of
   * reading. In this case, the data from the stream is not interpreted in
   * reading. In this case, the data from the stream is not interpreted in
   * any way.
   * any way and just read as bytes.
   *
   *
   * @param base the base object to read from
   * @param base the base object to read from
Line 189: Line 199:
   * the manner is which the stream is created. If no strings apply, use
   * the manner is which the stream is created. If no strings apply, use
   * a null string. Possible values are:
   * a null string. Possible values are:
  *  create - create the file if it does not already exist, useful to
  *            handle reading from non-existant files without errors.
  *  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.
   *  block - when reading from a transport such as a socket, an attempt to
   *  block - when reading from a transport such as a socket, an attempt to
   *          read from the stream while there is no data available will wait
   *          read from the stream while there is no data available will wait
287

edits

Navigation menu