From: Niki Roo Date: Fri, 22 Jun 2018 17:20:16 +0000 (+0000) Subject: Downloader: allow switching the cache X-Git-Tag: fanfix-swing-0.0.1~21^2~196 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=3052163b494bf89d178638a047ca80008578a782;p=fanfix-swing.git Downloader: allow switching the cache --- diff --git a/src/be/nikiroo/utils/Downloader.java b/src/be/nikiroo/utils/Downloader.java index 651abc3a..4976c483 100644 --- a/src/be/nikiroo/utils/Downloader.java +++ b/src/be/nikiroo/utils/Downloader.java @@ -88,6 +88,25 @@ public class Downloader { this.tracer = tracer; } + /** + * The {@link Cache} to use for all access (can be NULL). + * + * @return the cache + */ + public Cache getCache() { + return cache; + } + + /** + * The {@link Cache} to use for all access (can be NULL). + * + * @param cache + * the new cache + */ + public void setCache(Cache cache) { + this.cache = cache; + } + /** * Clear all the cookies currently in the jar. *