Implemented by
- @mozilla.org/network/sync-stream-listener;1
- @mozilla.org/url-classifier/streamupdater;1
- @mozilla.org/streamconv;1?from=x-compress&to=uncompressed
- @mozilla.org/streamconv;1?from=text/plain&to=text/html
- @mozilla.org/xpinstall/install-manager;1
- @mozilla.org/streamconv;1?from=text/gopher-dir&to=application/http-index-format
- @mozilla.org/streamconv;1?from=application/http-index-format&to=text/html
- @mozilla.org/network/binary-detector;1
- @mozilla.org/network/unichar-stream-loader;1
- @mozilla.org/network/input-stream-channel;1
- @mozilla.org/streamconv;1?from=compress&to=uncompressed
- @mozilla.org/network/stream-loader;1
- @mozilla.org/streamconv;1?from=application/mac-binhex40&to=*/*
- @mozilla.org/feed-processor;1
- @mozilla.org/streamconv;1?from=multipart/mixed&to=*/*
- @mozilla.org/browser/feeds/sniffer;1
- @mozilla.org/autoconfiguration;1
- @mozilla.org/streamconv;1?from=uncompressed&to=deflate
- @mozilla.org/network/simple-stream-listener;1
- @mozilla.org/streamconv;1?from=uncompressed&to=gzip
- @mozilla.org/network/urichecker;1
- @mozilla.org/browser/httpindex-service;1
- @mozilla.org/embedding/browser/nsWebBrowserPersist;1
- @mozilla.org/streamconv;1?from=gzip&to=uncompressed
- @mozilla.org/streamconv;1?from=deflate&to=uncompressed
- @mozilla.org/streamconv;1?from=x-gzip&to=uncompressed
- @mozilla.org/rdf/datasource;1?name=xml-datasource
- @mozilla.org/streamconv;1?from=uncompressed&to=x-gzip
- @mozilla.org/network/incremental-download;1
- @mozilla.org/txttohtmlconv;1
- @mozilla.org/streamconv;1?from=application/x-unknown-content-type&to=*/*
- @mozilla.org/streamconv;1?from=application/vnd.mozilla.maybe.feed&to=*/*
- @mozilla.org/streamconv;1?from=multipart/byteranges&to=*/*
- @mozilla.org/rdf/datasource;1?name=httpindex
- @mozilla.org/network/content-sniffer;1
- @mozilla.org/network/stream-listener-tee;1
- @mozilla.org/streamconv;1?from=application/vnd.mozilla.maybe.video.feed&to=*/*
- @mozilla.org/streamconv;1?from=multipart/x-mixed-replace&to=*/*
- @mozilla.org/streamconv;1?from=text/ftp-dir&to=application/http-index-format
- @mozilla.org/streamconv;1?from=uncompressed&to=rawdeflate
- @mozilla.org/streamconv;1?from=application/vnd.mozilla.maybe.audio.feed&to=*/*
- @mozilla.org/saxparser/xmlreader;1
- @mozilla.org/dirIndexParser;1
- @mozilla.org/network/downloader;1
nsIStreamListener @status FROZEN
[scriptable, uuid(1a637020-1482-11d3-9333-00104ba0fd40)]
interface nsIStreamListener : nsIRequestObserver
Methods
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. @param aRequest request corresponding to the source of the data @param aContext user defined context @param aInputStream input stream containing the data chunk @param aOffset current stream position @param aCount 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.
void
onDataAvailable(in nsIRequest aRequest, in nsISupports aContext, in nsIInputStream aInputStream, in unsigned long aOffset, in unsigned long aCount)
Compare to: