nsIRequest
Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)void asyncCopy(in nsIRequestObserver aObserver, in nsISupports aObserverContext); |
void init(in nsIInputStream aSource, in nsIOutputStream aSink, in nsIEventTarget aTarget, in boolean aSourceBuffered, in boolean aSinkBuffered, in unsigned long aChunkSize, in boolean aCloseSource, in boolean aCloseSink); |
Starts the copy operation. The specified observer is notified when the copy completes.
void asyncCopy( in nsIRequestObserver aObserver, in nsISupports aObserverContext );
aObserver
aObserverContext
Initializes the stream copier.
void init( in nsIInputStream aSource, in nsIOutputStream aSink, in nsIEventTarget aTarget, in boolean aSourceBuffered, in boolean aSinkBuffered, in unsigned long aChunkSize, in boolean aCloseSource, in boolean aCloseSink );
aSource
aSink
aTarget
null
value is permitted and causes the copy to occur on an unspecified background thread.aSourceBuffered
true
if aSource
implements nsIInputStream.readSegments()
.aSinkBuffered
true
if aSink
implements nsIInputStream.writeSegments()
.aChunkSize
aCloseSource
true
if aSource
should be closed after copying.aCloseSink
true
if aSink
should be closed after copying.