
nsIStreamListener
This interface serves as notification that a chunk of data may be read without blocking the calling thread. It is scriptable.
Indicates the next chunk of data (corresponding to the request) may be read without blocking the calling thread. The
onDataAvailableimpl must read exactlyaCountbytes of data before returning.Note: An exception thrown from
onDataAvailablehas the side-effect of causing the request to be canceled.Syntax:
void nsIStreamListener::onDataAvailable( in nsIRequest aRequest,in nsISupports aContext, in nsIInputStream aInputStream, in unsigned long aOffset, in unsigned long aCount)Parameters:
nsresult:
| Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |