You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

Embedding Gecko API


nsIScriptableInputStream


This interface provides scriptable access to the nsIInputStream.

Methods
close

Closes the stream.

Syntax:

void nsIScriptableInputStream::close() 

Parameters:

None.

nsresult:

NS_OK if successful.
init

Wraps the given nsIInputStream with this nsIScriptableInputStream.

Syntax:

void nsIScriptableInputStream::init(
	in nsIInputStream aInputStream) 

Parameters:

aInputStream: The stream to be wrapped.

nsresult:

NS_OK if successful.
available

Gets the the number of bytes currently available in the stream.

Syntax:

unsigned long nsIScriptableInputStream::available() 

Parameters:

None.

Returns:

The number of bytes.
read

Reads data from the stream.

Syntax:

string nsIScriptableInputStream::read(
	in unsigned long aCount) 

Parameters:

aCount: The maximum number of bytes to read .

Returns:

The data.

Written by:Ellen Evans | Comments, questions, complaints? Bug 143387
TOC PREV NEXT INDEX