[scriptable, uuid(e06e8b08-8cdd-4503-a0a0-6f3b943602af)]
interface nsIUnicharStreamLoaderObserver : nsISupports
Methods
Called when the first full segment of data if available. @param aLoader the unichar stream loader @param aContext the aContext parameter passed to the loader's init method @param aFirstSegment the raw bytes of the first full data segment @param aLength the length of aFirstSegment @return charset corresponding to this stream
ACString
onDetermineCharset(in nsIUnicharStreamLoader aLoader, in nsISupports aContext, [size_is(aLength)] in string aFirstSegment, in unsigned long aLength)
Called when the entire stream has been loaded.
@param aLoader the unichar stream loader
@param aContext the aContext parameter passed to the loader's init method
@param aStatus the status of the underlying channel
@param aUnicharData the unichar input stream containing the data. This
can be null in some failure conditions.
void
onStreamComplete(in nsIUnicharStreamLoader aLoader, in nsISupports aContext, in nsresult aStatus, in nsIUnicharInputStream aUnicharData)
Compare to: