From: Joerg Pietschmann Date: Tue, 17 Sep 2002 20:19:29 +0000 (+0000) Subject: Added method to clear the image cache to FopImageFactory. X-Git-Tag: fop-0_20_5rc~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=90c4cd20192f4ad53848f973ae9912671584e960;p=xmlgraphics-fop.git Added method to clear the image cache to FopImageFactory. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195207 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/image/FopImageFactory.java b/src/org/apache/fop/image/FopImageFactory.java index b2f105dc8..00eaa943e 100644 --- a/src/org/apache/fop/image/FopImageFactory.java +++ b/src/org/apache/fop/image/FopImageFactory.java @@ -197,5 +197,11 @@ public class FopImageFactory { return (FopImage)imageInstance; } + /** + * Clear the image cache. + */ + public static synchronized void resetCache() { + m_urlMap.clear(); + } }