RemoteData

interface RemoteData

A data container storing a pCloud account's file entry data.

Functions

byteStream
Link copied to clipboard
abstract fun byteStream(): InputStream
Open an InputStream to the resource.
download
Link copied to clipboard
abstract fun download(sink: DataSink)
Download the contained data to a DataSinkThe method will block until the download operation completes or an exception is thrown.
abstract fun download(sink: DataSink, listener: ProgressListener)
Download the contained data to a DataSink Attempts to download the resource data to the specified location, optionally sending progress updates via a ProgressListener.
source
Link copied to clipboard
abstract fun source(): BufferedSource
Open an BufferedSource to the resource.

Inheritors

FileLink
Link copied to clipboard
RemoteFile
Link copied to clipboard