Logo Search packages:      
Sourcecode: xulrunner version File versions

nsIStreamLoader Interface Reference

import "nsIStreamLoader.idl";

Inheritance diagram for nsIStreamLoader:

nsIStreamListener nsIRequestObserver nsISupports

List of all members.


Detailed Description

Asynchronously loads a channel into a memory buffer.

To use this interface, first call init() with a nsIStreamLoaderObserver that will be notified when the data has been loaded. Then call asyncOpen() on the channel with the nsIStreamLoader as the listener. The context argument in the asyncOpen() call will be passed to the onStreamComplete() callback.

XXX define behaviour for sizes >4 GB

Definition at line 78 of file nsIStreamLoader.idl.


Public Member Functions

void init (in nsIStreamLoaderObserver aObserver)
void onDataAvailable (in nsIRequest aRequest, in nsISupports aContext, in nsIInputStream aInputStream, in unsigned long aOffset, in unsigned long aCount)
void onStartRequest (in nsIRequest aRequest, in nsISupports aContext)
void onStopRequest (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatusCode)
Methods
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

readonly attribute unsigned long numBytesRead
readonly attribute nsIRequest request

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

Generated by  Doxygen 1.6.0   Back to index