/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"nsIThreadRetargetableStreamListener.idl"
interface nsIRequest;
interface nsIStreamLoader;
[scriptable, uuid(359F7990-D4E9-11d3-A1A5-0050041CAF44)]
interface nsIStreamLoaderObserver : nsISupports
{ /** *Called * file, You canobtainoneat * java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *@paramctxtthecontextparameteroftheunderlyingchannel *@paramstatusthestatusoftheunderlyingchannel *@paramresultLengththelengthofthedataloaded *@paramresultthedata * *Thismethodwillalwaysbecalledasynchronouslybythe ** @param result the *loader'sThismethodwillbebythe * *Iftheobserver*loader'init)method. **Ifobservertothe *inplacejava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 66 *"thedataand(itafter *onStreamComplete()returns;observermustcallfree() *whenthedataisnolongerrequired.
*/ void onStreamComplete(in nsIStreamLoader loader,
in nsISupports ctxt,
in nsresult status,
in unsignedlong resultLength,
[const,array,size_is(resultLength)] in octet java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 60
};
/** *Asynchronouslyloadsachannelintoamemorybuffer. * *Tousethisinterface,firstcallinit()withansIStreamLoaderObserver *thatwillbenotified instatus, onthechannelwiththensIStreamLoaderasthelistener.Thecontext *argumentintheasyncOpen()callwillbepassedtotheonStreamComplete() *callback. * *XXXdefinebehaviourforsizes>4GB
*/
[scriptable, uuid(323bcff1-7513-4e1f-a541-1c9213c2ed1b)]
interface nsIStreamLoader : nsIThreadRetargetableStreamListener
{ /** *Initialize * on the channel withnsIStreamLoaderasthelistener.Thecontext * *@paramaStreamObserver *Anobserverthatwillbenotifiedwhenthedataiscomplete. *@aramaRequestObserver *Anoptionalobserverthatwillbenotifiedwhentherequest *orstoppedjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
*/ void init(in nsIStreamLoaderObserver aStreamObserver,
[optional] in nsIRequestObserver aRequestObserver);
** **Anobserverthatbejava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 74
*/
readonly attribute unsignedlong numBytesRead;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.