download
Download the contained data to a DataSink
Attempts to download the resource data to the specified location, optionally sending progress updates via a ProgressListener.
The method will block until the download operation completes or an exception is thrown.Parameters
sink
a DataSink instance where data will be downloaded. Must not be null.
listener
The listener to be used to notify about upload progress. If null, no progress will be reported.
Throws
on a network, IO or API error.
on a null sink
argument.
Download the contained data to a DataSink
The method will block until the download operation completes or an exception is thrown.See also
Parameters
sink
a DataSink instance where data will be downloaded. Must not be null.
Throws
on a network, IO or API error.
on a null sink
argument.