1 18 19 package org.apache.batik.ext.awt.image; 20 21 import org.apache.batik.ext.awt.image.renderable.Filter; 22 import org.apache.batik.util.ParsedURL; 23 import org.apache.batik.util.SoftReferenceCache; 24 25 35 36 public class URLImageCache extends SoftReferenceCache{ 37 38 static URLImageCache theCache = new URLImageCache(); 39 40 public static URLImageCache getDefaultCache() { return theCache; } 41 42 45 public URLImageCache() { } 46 47 55 public synchronized boolean isPresent(ParsedURL purl) { 56 return super.isPresentImpl(purl); 57 } 58 59 65 public synchronized boolean isDone(ParsedURL purl) { 66 return super.isDoneImpl(purl); 67 } 68 69 73 public synchronized Filter request(ParsedURL purl) { 74 return (Filter)super.requestImpl(purl); 75 } 76 77 82 public synchronized void clear(ParsedURL purl) { 83 super.clearImpl(purl); 84 } 85 86 93 public synchronized void put(ParsedURL purl, Filter filt) { 94 super.putImpl(purl, filt); 95 } 96 } 97 | Popular Tags |