nsIStreamIO

IID:d6c01ab2-0d04-11d4-986e-00c04fa0cf4a
Inherits From:nsISupports

nsIStreamIO is an abstract interface that gives access to input and output streams on an object. Perhaps the most interesting subclass of this is nsIFileIO which allows access to input and output streams to files.


Attributes

readonly ACString contentCharset

Associated content charset, if any.

readonly PRInt32 contentLength

Associated content length; -1 if unknown.

readonly ACString contentType

Associated content type, if any.

readonly nsIInputStream inputStream

Gets an input stream from a stream I/O object.

readonly AUTF8String name

The 'name' of a stream I/O object. This name is often used for display purposes.

readonly nsIOutputStream outputStream

Gets an output stream from a stream I/O object.


Methods

void close ( nsresult status ) void open ( )

void close ( nsresult status )

Logically closes a stream I/O object. A status value is passed in to indicate a successful close (NS_OK) or failure.

Arguments:
status

void open ( )

Logically opens a stream I/O object. This method may block the calling thread pending i/o or other delays.


Most XPCOM reference documentation is generated automatically from Mozilla source.
Other content is copyright © 1999 - 2003 XulPlanet.com