public final class DownloadResult
extends java.lang.Object
Downloader may skip the downloading step if the resource is already downloaded and that skip is captured in this result.| Constructor and Description |
|---|
DownloadResult() |
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
getDownload()
The download is the local filesystem path of the resource that was requested.
|
boolean |
isDownloadSkipped()
A
Downloader may skip the download process if the requested resource already exists on the local filesystem. |
void |
setDownload(java.nio.file.Path download)
For a
Downloader to set the location of the download |
void |
setDownloadSkipped(boolean downloadSkipped)
For a
Downloader to signal that a download did not occur. |
public boolean isDownloadSkipped()
Downloader may skip the download process if the requested resource already exists on the local filesystem.
This may be because a previous download request downloaded the resource and the resource has not been modified since.
This also may occur if the requested path was already a local file system path.public void setDownloadSkipped(boolean downloadSkipped)
Downloader to signal that a download did not occur.downloadSkipped - true if a download did not occurpublic void setDownload(java.nio.file.Path download)
Downloader to set the location of the downloaddownload - a path representing the directory or file that was downloadedpublic java.nio.file.Path getDownload()
Downloader supported the archive type then the download path will be a directory.© 2018, 2020 Precisely. All rights reserved.