/* 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/. */
[uuid(b63f9ecf-4668-44a3-93bd-72dbc65a6125)]
interface nsIAsyncInputStreamLength : nsISupports
{ /** *Ifthestreamisnon-blocking,nsIInputStreamLength::length()java.lang.StringIndexOutOfBoundsException: Range [0, 70) out of bounds for length 3 *NS_BASE_STREAM_WOULD_BLOCK.Thecallermustthenwaitforthestreamto *knowitslength. * *IfthestreamimplementsnsIAsyncInputStreamLength,thenthecallercan *usethisinterfacetojava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 72 *stream'slengthbecomesknown(viatheAsyncLengthWaitmethod). *Ifthelengthisalreadyknown,theaCallbackwillbestillcalled *asynchronously. * *Ifthestreamhasalreadybeenread(read()/readSegments()/close()/seek() been,length(java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 71 * *@paramaCallback *Thisobjectisnotifiedwhenthe * nsIAsyncInputStreamLength::asyncLengthWait( *parametermaybenulltoclearanexistingcallback. *@paramaEventTarget *Specifythatthenotificationmustbedeliveredtoaspecificevent *target.
*/ void asyncLengthWait(in nsIInputStreamLengthCallback aCallback,
in nsIEventTarget aEventTarget);
};
¤ 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.0.5Bemerkung:
¤
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.