Implemented by
[scriptable, uuid(31d37360-8e5a-11d3-93ad-00104ba0fd40)]
interface nsIStreamLoader : nsISupports
Attributes
Gets the number of bytes read so far.
readonly attribute
unsigned long
numBytesRead
Gets the request that loaded this file. null after the request has finished loading.
readonly attribute
nsIRequest
request
Methods
Asynchronously loads a channel into a memory buffer.
XXX define behaviour for sizes >4 GB
Initialize this stream loader, and start loading the data.
@param aChannel
A Channel to load data from. This must not be asyncOpen'd yet!
@param aObserver
An observer that will be notified when the data is complete.
@param aContext
May be null. Will be passed to the observer.
@note Failure to open the channel will be indicated by an async callback
to the observer.
void
init(in nsIChannel aChannel, in nsIStreamLoaderObserver aObserver, in nsISupports aContext)
Compare to: