Looking For

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