FileLink

interface FileLink : RemoteData

A link to the contents of a file entry on a pCloud account's filesystem.

Functions

bestUrl
Link copied to clipboard
abstract fun bestUrl(): URL
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.
expirationDate
Link copied to clipboard
abstract fun expirationDate(): Date
source
Link copied to clipboard
abstract fun source(): BufferedSource
Open an BufferedSource to the resource.
urls
Link copied to clipboard
abstract fun urls(): List<URL>