From 3052163b494bf89d178638a047ca80008578a782 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 22 Jun 2018 17:20:16 +0000 Subject: [PATCH] Downloader: allow switching the cache --- src/be/nikiroo/utils/Downloader.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/be/nikiroo/utils/Downloader.java b/src/be/nikiroo/utils/Downloader.java index 651abc3..4976c48 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. *

-- 2.27.0