public class FileDownloader
| Modifier and Type | Class and Description |
|---|---|
static class |
FileDownloader.Companion |
| Modifier and Type | Field and Description |
|---|---|
static FileDownloader.Companion |
Companion |
static int |
KILOBYTE |
static int |
TRANSFER_CHUNK_100_KB |
| Constructor and Description |
|---|
FileDownloader(AemExtension aem) |
| Modifier and Type | Method and Description |
|---|---|
void |
download(long size,
java.io.InputStream input,
java.io.File target) |
void |
logProgress(ProgressLogger $receiver,
java.lang.String operation,
long readLength,
long fullLength,
java.io.File file,
long startDownloadTime) |
long |
remainingDownloadTime(long startDownloadTime,
long fullLength) |
public static int TRANSFER_CHUNK_100_KB
public static int KILOBYTE
public static FileDownloader.Companion Companion
public FileDownloader(@NotNull
AemExtension aem)
public long remainingDownloadTime(long startDownloadTime,
long fullLength)
public void logProgress(@NotNull
ProgressLogger $receiver,
@NotNull
java.lang.String operation,
long readLength,
long fullLength,
@NotNull
java.io.File file,
long startDownloadTime)
public void download(long size,
@NotNull
java.io.InputStream input,
@NotNull
java.io.File target)