Interface DownloadService
public interface DownloadService
Service to download a set of files to local disk.
- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceManifest containing source (URIs) and their expected destination on disk after download. -
Method Summary
Modifier and TypeMethodDescriptionvoiddownload(DownloadService.Manifest downloadsManifest) Download all files as per provided manifest.Get a new manifest builder.
-
Method Details
-
newManifestBuilder
DownloadService.Manifest.Builder newManifestBuilder()Get a new manifest builder.- Returns:
- a new builder
-
download
Download all files as per provided manifest. The destination directories present in the manifest are expected to exist. Existing files will not be overwritten.- Parameters:
downloadsManifest- a download manifest- Throws:
DownloadException- if at least one of the downloads fails
-