public class NvdCache
extends java.lang.Object
| Constructor and Description |
|---|
NvdCache(Settings settings)
Creates a new cache for the NVD files.
|
| Modifier and Type | Method and Description |
|---|---|
void |
evictFromCache(java.net.URL url)
Evict a file corresponding to a URL from the cache.
|
boolean |
notInCache(java.net.URL url,
java.io.File file)
Checks if the file is in the cache and within four hours.
|
void |
storeInCache(java.net.URL url,
java.io.File file)
Stores a file in the cache.
|
public NvdCache(Settings settings)
settings - ODC settingspublic boolean notInCache(java.net.URL url,
java.io.File file)
url - the URL of the file cachedfile - the path of the file to restore from the cachetrue if the URL file is not in the cache; otherwise
falsepublic void storeInCache(java.net.URL url,
java.io.File file)
url - the URL of the file to cachefile - the file to cachepublic void evictFromCache(java.net.URL url)
url - the origin URL of the file that is to be evicted from the cacheCopyright© 2012-21 Jeremy Long. All Rights Reserved.