private static long currentMemoryDownUp(int sizeOld, int sizeNew) { currentMemoryDown(sizeOld); return currentMemoryUp(sizeNew); }
/** * purge the given image's in memory image data and remove it from cache. * @param imgURL URL of an image file */ public static void unCacheImage(URL imgURL) { Image img = imageFiles.get(imgURL); if (img == null) { return; } currentMemoryDown(img.bsize); img.setBimg(null); images.remove(img); }
bit.remove(); log(lvl + 1, "purge: bimg: %s", img); currentMemoryDown(img.bsize);