Methods
(async) copyTo(stream, bufferSize, onProgressChanged)
Write stream contents to another stream.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
stream |
RandomAccessStream | The target stream. | |
bufferSize |
number | 0 | The buffer size to be used when copying. |
onProgressChanged |
OnProgressChanged | The listener to notify when progress changes. |
Throws:
IOException Thrown if there is an IO error.