]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
add method to remove context
authorKeiron Liddle <keiron@apache.org>
Thu, 19 Dec 2002 08:13:18 +0000 (08:13 +0000)
committerKeiron Liddle <keiron@apache.org>
Thu, 19 Dec 2002 08:13:18 +0000 (08:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195782 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/image/ImageFactory.java

index 3ea3a8bc5ce2c90bd18802cabbb0cfde581dc8e4..73fd6f749d45e64a4494582cf16ac5dfaf327fd0 100644 (file)
@@ -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