Readonly
numGets the number of bytes read so far.
Readonly
requestGets the request that loaded this file. null after the request has finished loading.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Called when the next chunk of data (corresponding to the request) may be read without blocking the calling thread. The onDataAvailable impl must read exactly |aCount| bytes of data before returning.
request corresponding to the source of the data
input stream containing the data chunk
Number of bytes that were sent in previous onDataAvailable calls for this request. In other words, the sum of all previous count parameters.
number of bytes available in the stream
NOTE: The aInputStream parameter must implement readSegments.
An exception thrown from onDataAvailable has the side-effect of causing the request to be canceled.
Called to signify the end of an asynchronous request. This call is always preceded by a call to onStartRequest.
request being observed
reason for stopping (NS_OK if completed successfully)
An exception thrown from onStopRequest is generally ignored.
Generated using TypeDoc
Asynchronously loads a channel into a memory buffer.
To use this interface, first call init() with a nsIIncrementalStreamLoaderObserver that will be notified when the data has been loaded. Then call asyncOpen() on the channel with the nsIIncrementalStreamLoader as the listener. The context argument in the asyncOpen() call will be passed to the onStreamComplete() callback.
XXX define behaviour for sizes >4 GB