nsIStreamListener
| IID: | 1a637020-1482-11d3-9333-00104ba0fd40 |
| Inherits From: | nsIRequestObserver |
| Status: | FROZEN |
This interface is implemented by the following components:
- @mozilla.org/autoconfiguration;1
- @mozilla.org/browser/httpindex-service;1
- @mozilla.org/dirIndexParser;1
- @mozilla.org/embedding/browser/nsWebBrowserPersist;1
- @mozilla.org/messenger/copymessagestreamlistener;1
- @mozilla.org/messenger/localfoldercompactor;1
- @mozilla.org/messenger/mailboxparser;1
- @mozilla.org/messenger/offlinestorecompactor;1
- @mozilla.org/messengercompose/sendlater;1
- @mozilla.org/messengercompose/urlfetcher;1
- @mozilla.org/network/async-stream-listener;1
- @mozilla.org/network/downloader;1
- @mozilla.org/network/input-stream-channel;1
- @mozilla.org/network/simple-stream-listener;1
- @mozilla.org/network/stream-io-channel;1
- @mozilla.org/network/stream-listener-tee;1
- @mozilla.org/network/stream-loader;1
- @mozilla.org/network/unichar-stream-loader;1
- @mozilla.org/network/urichecker;1
- @mozilla.org/rdf/datasource;1?name=httpindex
- @mozilla.org/rdf/datasource;1?name=xml-datasource
- @mozilla.org/streamconv;1?from=application/http-index-format&to=text/html
- @mozilla.org/streamconv;1?from=application/mac-binhex40&to=*/*
- @mozilla.org/streamconv;1?from=application/x-unknown-content-type&to=*/*
- @mozilla.org/streamconv;1?from=compress&to=uncompressed
- @mozilla.org/streamconv;1?from=deflate&to=uncompressed
- @mozilla.org/streamconv;1?from=gzip&to=uncompressed
- @mozilla.org/streamconv;1?from=message/rfc822&to=*/*
- @mozilla.org/streamconv;1?from=message/rfc822&to=application/vnd.mozilla.xul+xml
- @mozilla.org/streamconv;1?from=message/rfc822&to=text/html
- @mozilla.org/streamconv;1?from=multipart/byteranges&to=*/*
- @mozilla.org/streamconv;1?from=multipart/mixed&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=text/gopher-dir&to=application/http-index-format
- @mozilla.org/streamconv;1?from=text/plain&to=text/html
- @mozilla.org/streamconv;1?from=x-compress&to=uncompressed
- @mozilla.org/streamconv;1?from=x-gzip&to=uncompressed
- @mozilla.org/xml-rpc/client;1
- @mozilla.org/network/sync-stream-listener;1
- @mozilla.org/network/incremental-download;1
- @mozilla.org/streamconv;1?from=application/x-vnd.mozilla.maybe-text&to=*/*
- @mozilla.org/xpinstall/install-manager;1
- @mozilla.org/browser/feeds/sniffer;1
- @mozilla.org/feed-processor;1
- @mozilla.org/network/binary-detector;1
- @mozilla.org/network/content-sniffer;1
- @mozilla.org/saxparser/xmlreader;1
- @mozilla.org/streamconv;1?from=application/vnd.mozilla.maybe.audio.feed&to=*/*
- @mozilla.org/streamconv;1?from=application/vnd.mozilla.maybe.feed&to=*/*
- @mozilla.org/streamconv;1?from=application/vnd.mozilla.maybe.video.feed&to=*/*
- @mozilla.org/streamconv;1?from=uncompressed&to=deflate
- @mozilla.org/streamconv;1?from=uncompressed&to=gzip
- @mozilla.org/streamconv;1?from=uncompressed&to=rawdeflate
- @mozilla.org/streamconv;1?from=uncompressed&to=x-gzip
- @mozilla.org/url-classifier/streamupdater;1
Methods
void onDataAvailable ( nsIRequest request , nsISupports context , nsIInputStream inputStream , PRUint32 offset , PRUint32 count )
void onDataAvailable ( nsIRequest request , nsISupports context , nsIInputStream inputStream , PRUint32 offset , PRUint32 count )
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 count bytes of data before returning.
NOTE: The inputStream parameter must implement readSegments.
An exception thrown from onDataAvailable has the side-effect of causing the request to be canceled.
- Arguments:
- request: request corresponding to the source of the data
- context: user defined context
- inputStream: input stream containing the data chunk
- offset: Number of bytes that were sent in previous onDataAvailable calls for this request. In other words, the sum of all previous count parameters. If that number is greater than or equal to 2^32, this parameter will be PR_UINT32_MAX (2^32 - 1).
- count: number of bytes available in the stream
References
This interface is the type of the following properties:
nsIMailboxUrl.mailboxCopyHandler, nsIMailboxUrl.mailboxParser
This interface is passed as an argument to the following methods:
imgILoader.loadImageWithChannel, nsIChannel.asyncOpen, nsIDocumentLoaderFactory.createInstance, nsIImapMockChannel.GetChannelListener, nsIInputStreamPump.asyncRead, nsIMailboxService.ParseMailbox, nsIMimeEmitter.SetOutputListener, nsIMsgMessageService.CopyMessage, nsIMsgMessageService.CopyMessages, nsIPluginDocument.setStreamListener, nsIStreamConverter.asyncConvertData, nsIStreamConverterService.asyncConvertData, nsIStreamListenerTee.init, nsIURIContentListener.doContent
This interface is returned from the following methods:
nsIExternalHelperAppService.doContent, nsIImageLoadingContent.loadImageWithChannel, nsIMimeEmitter.GetOutputListener, nsIMsgMailNewsUrl.getSaveAsListener, nsIPluginHost.instantiatePluginForChannel, nsIRDFXMLParser.parseAsync, nsIStreamConverterService.asyncConvertData, nsIURILoader.openChannel
Reference documentation is generated from Mozilla's source.
