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
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: current stream position
- count: number of bytes available in the stream
References
This interface is the type of the following properties:
nsIMailboxUrl.mailboxCopyHandler, nsIMailboxUrl.mailboxParser, nsIMsgQuote.streamListener
This interface is passed as an argument to the following methods:
imgILoader.loadImageWithChannel, nsIAsyncStreamListener.init, nsIChannel.asyncOpen, nsIDocumentLoaderFactory.createInstance, nsIImapMockChannel.GetChannelListener, nsIInputStreamPump.asyncRead, nsIMailboxService.ParseMailbox, nsIMimeEmitter.SetOutputListener, nsIMsgMessageService.CopyMessage, nsIMsgMessageService.CopyMessages, nsIMsgQuote.QuoteMessage, nsIPluginDocument.setStreamListener, nsIStreamConverter.asyncConvertData, nsIStreamConverterService.asyncConvertData, nsIStreamListenerProxy.init, nsIStreamListenerTee.init, nsIURIContentListener.doContent
This interface is returned from the following methods:
nsIExternalHelperAppService.doContent, nsIImageLoadingContent.loadImageWithChannel, nsIMimeEmitter.GetOutputListener, nsIMsgMailNewsUrl.getSaveAsListener, nsIRDFXMLParser.parseAsync, nsIStreamConverterService.asyncConvertData
Reference documentation is generated from Mozilla's source.