Visit Mozilla.org

nsIOutputStream

From MDC

« XPCOM API Reference

[edit] Summary

The nsIOutputStream interface represents a writable data sink.

  #include "nsIOutputStream.h"

  [scriptable, uuid=(0d0acd2a-61b4-11d4-9877-00c04fa0cf4a)]
  interface nsIOutputStream : nsISupports { ... };

[edit] Methods

close
This method closes the output stream.
flush
This method flushes the output stream.
write
This method copies data from a buffer into the stream.
writeSegments
This method provides direct access to the stream's internal buffer for writing.
writeFrom
This method copies data from an nsIInputStream to this nsIOutputStream.
isNonBlocking
This method returns true if the stream is non-blocking.

[edit] History

This interface was frozen for Mozilla 1.0. See bug 124465 for details.