Package org.apache.ivy.core.cache
Class DefaultRepositoryCacheManager.BackupResourceDownloader
java.lang.Object
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.BackupResourceDownloader
- All Implemented Interfaces:
ResourceDownloader
- Enclosing class:
- DefaultRepositoryCacheManager
private final class DefaultRepositoryCacheManager.BackupResourceDownloader
extends Object
implements ResourceDownloader
Resource downloader which makes a copy of the previously existing file before overriding it.
The backup file can be restored or cleaned up later
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
delegate
-
backup
-
originalPath
-
-
Constructor Details
-
BackupResourceDownloader
-
-
Method Details
-
download
- Specified by:
download
in interfaceResourceDownloader
- Throws:
IOException
-
restore
- Throws:
IOException
-
cleanUp
public void cleanUp()
-