From: Keiron Liddle Date: Thu, 19 Dec 2002 08:13:18 +0000 (+0000) Subject: add method to remove context X-Git-Tag: Alt-Design-integration-base~233 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a13b06cc9c51ca784bf4fcb35981a684764e40e2;p=xmlgraphics-fop.git add method to remove context git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195782 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/image/ImageFactory.java b/src/org/apache/fop/image/ImageFactory.java index 3ea3a8bc5..73fd6f749 100644 --- a/src/org/apache/fop/image/ImageFactory.java +++ b/src/org/apache/fop/image/ImageFactory.java @@ -107,6 +107,15 @@ public class ImageFactory { cache.releaseImage(url, context); } + /** + * Release the context and all images in the context. + * + * @param context the context to remove + */ + public void removeContext(FOUserAgent context) { + cache.removeContext(context); + } + /** * create an FopImage objects. * @param href image URL as a String