Package com.helger.commons.gfx
Class ImageDataManager
java.lang.Object
com.helger.commons.gfx.ImageDataManager
This service class is used to cache information about images. It is used to
set the HTML attributes width and height for images. It has an internal cache
to avoid querying the data every time.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionRemove all cached elementsRemove a single resource from the cache.static ImageDataManagerstatic boolean
-
Method Details
-
isInstantiated
public static boolean isInstantiated() -
getInstance
-
getImageSize
-
clearCachedSize
Remove a single resource from the cache.- Parameters:
aRes- The resource to be removed. May benull.- Returns:
- Never
null.
-
clearCache
Remove all cached elements- Returns:
EChange- never null
-
getAllCachedSizes
-
getAllNotExistingResources
-