common-plugin / com.cognifide.gradle.common.file.transfer / FileDownloader

FileDownloader

class FileDownloader

Constructors

<init>

FileDownloader(common: CommonExtension)

Functions

download

fun download(size: Long, input: InputStream, target: File): Unit

logProgress

fun ProgressLogger.logProgress(operation: String, readLength: Long, fullLength: Long, file: File, startDownloadTime: Long): Unit

remainingDownloadTime

fun remainingDownloadTime(startDownloadTime: Long, fullLength: Long): Long

Companion Object Properties

KILOBYTE

const val KILOBYTE: Int

TRANSFER_CHUNK_100_KB

const val TRANSFER_CHUNK_100_KB: Int