nsIStreamLoader

IID:31d37360-8e5a-11d3-93ad-00104ba0fd40
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

readonly PRUint32 numBytesRead

Gets the number of bytes read so far.

readonly nsIRequest request

Gets the request that loaded this file. null after the request has finished loading.


Methods

void init ( nsIChannel channel , nsIStreamLoaderObserver observer , nsISupports context )

void init ( nsIChannel channel , nsIStreamLoaderObserver observer , nsISupports context )

Initialize this stream loader, and start loading the data.

Arguments:
channel: A Channel to load data from. This must not be asyncOpen'd yet!
observer: An observer that will be notified when the data is complete.
context: May be null. Will be passed to the observer.

References

This interface is passed as an argument to the following methods:

nsIStreamLoaderObserver.onStreamComplete

Reference documentation is generated from Mozilla's source.