public interface DownloadCache extends ExternalResource
DownloadCacheallows tests to download a files and/or directories and optionally caches them.
Whether, how, and for how long files are cached is implementation-dependent.
|Modifier and Type||Method and Description|
Returns the configured DownloadCache implementation, or a
Returns either a cached or newly downloaded version of the given file.
Path getOrDownload(String url, Path targetDir) throws IOException
url- File/directory to download
targetDir- directory to place file in
IOException- if any IO operation fails
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.