public Filter checkCache(ParsedURL purl, ICCColorSpaceWithIntent colorSpace) { // I just realized that this whole thing could boolean needRawData = (colorSpace != null); Filter ret = null; URLImageCache cache; if (needRawData) cache = rawCache; else cache = imgCache; ret = cache.request(purl); if (ret == null) { cache.clear(purl); return null; } // System.out.println("Image came from cache" + purl); if (colorSpace != null) ret = new ProfileRable(ret, colorSpace); return ret; }
public Filter checkCache(ParsedURL purl, ICCColorSpaceWithIntent colorSpace) { // I just realized that this whole thing could boolean needRawData = (colorSpace != null); Filter ret = null; URLImageCache cache; if (needRawData) cache = rawCache; else cache = imgCache; ret = cache.request(purl); if (ret == null) { cache.clear(purl); return null; } // System.out.println("Image came from cache" + purl); if (colorSpace != null) ret = new ProfileRable(ret, colorSpace); return ret; }
public Filter checkCache(ParsedURL purl, ICCColorSpaceWithIntent colorSpace) { // I just realized that this whole thing could boolean needRawData = (colorSpace != null); Filter ret = null; URLImageCache cache; if (needRawData) cache = rawCache; else cache = imgCache; ret = cache.request(purl); if (ret == null) { cache.clear(purl); return null; } // System.out.println("Image came from cache" + purl); if (colorSpace != null) ret = new ProfileRable(ret, colorSpace); return ret; }