Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIStreamLoader Interface Reference

Asynchronously loads a channel into a memory buffer. More...

import "nsIStreamLoader.idl";

Inheritance diagram for nsIStreamLoader:
Inheritance graph
[legend]
Collaboration diagram for nsIStreamLoader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void init (in nsIChannel aChannel, in nsIStreamLoaderObserver aObserver, in nsISupports aContext)
 Initialize this stream loader, and start loading the data.

Public Attributes

readonly attribute unsigned long numBytesRead
 Gets the number of bytes read so far.
readonly attribute nsIRequest request
 Gets the request that loaded this file.

Detailed Description

Asynchronously loads a channel into a memory buffer.

XXX define behaviour for sizes >4 GB

Definition at line 63 of file nsIStreamLoader.idl.


Member Function Documentation

void nsIStreamLoader::init ( in nsIChannel  aChannel,
in nsIStreamLoaderObserver  aObserver,
in nsISupports  aContext 
)

Initialize this stream loader, and start loading the data.

Parameters:
aChannelA Channel to load data from. This must not be asyncOpen'd yet!
aObserverAn observer that will be notified when the data is complete.
aContextMay be null. Will be passed to the observer.
Note:
Failure to open the channel will be indicated by an async callback to the observer.

Member Data Documentation

Gets the number of bytes read so far.

Definition at line 85 of file nsIStreamLoader.idl.

Gets the request that loaded this file.

null after the request has finished loading.

Definition at line 91 of file nsIStreamLoader.idl.


The documentation for this interface was generated from the following file: