nsIScriptableInputStream

IID:a2a32f90-9b90-11d3-a189-0050041caf44
Inherits From:nsISupports
Status:FROZEN

nsIScriptableInputStream provides scriptable access to the nsIInputStream.

This interface is intended to be used as an instance. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/scriptableinputstream;1"].
            createInstance(Components.interfaces.nsIScriptableInputStream);

This interface is implemented by the following components:


Methods

PRUint32 available ( ) void close ( ) void init ( nsIInputStream inputStream ) char* read ( PRUint32 count )

PRUint32 available ( )

Return the number of bytes currently available in the stream

Returns:
error status

void close ( )

Closes the stream.


void init ( nsIInputStream inputStream )

Wrap the given nsIInputStream with this nsIScriptableInputStream.

Arguments:
inputStream: [in] parameter providing the stream to wrap

char* read ( PRUint32 count )

Read data from the stream.

Arguments:
count: [in] the maximum number of bytes to read

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com