public class LocalDownloadCache extends Object implements DownloadCache, DownloadCacheGuessStorePath
| Constructor and Description |
|---|
LocalDownloadCache(Path baseDir) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Path> |
archiveFor(URL url,
ArchiveType archiveType) |
Path |
archivePath(URL url,
ArchiveType archiveType) |
Path |
store(URL url,
ArchiveType archiveType,
Path archive) |
public LocalDownloadCache(Path baseDir)
public Path archivePath(URL url, ArchiveType archiveType)
archivePath in interface DownloadCacheGuessStorePathpublic Optional<Path> archiveFor(URL url, ArchiveType archiveType)
archiveFor in interface DownloadCachepublic Path store(URL url, ArchiveType archiveType, Path archive) throws IOException
store in interface DownloadCacheIOExceptionCopyright © 2023. All rights reserved.