You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is
highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If
there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
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
onDataAvailable impl must read exactly
aCount bytes of data before returning.
Note: An exception thrown from
onDataAvailable has the side-effect of causing the request to be canceled.
in nsIRequest aRequest,in nsISupports aContext,
in nsIInputStream aInputStream,
in unsigned long aOffset, in unsigned long aCount)
: The request being observed.
: A user defined context.
The input stream containing the data chunk.
: The current stream position.
: The number of bytes available in the stream.