public interface CacheManager
ELJBean.getCacheManager()
.Modifier and Type | Method and Description |
---|---|
void |
addTemporaryImage(java.awt.image.RenderedImage imageData,
java.net.URL url)
Deprecated.
|
void |
addTemporaryImage2(java.awt.Image imageData,
java.net.URL url)
Populates the cache with data from an image URL.
|
java.io.File |
getCacheDir()
Deprecated.
use
getEphoxDir() instead |
java.lang.Object |
getDataFromCache(java.net.URL url)
Returns the locally cached data for a URL
|
java.io.File |
getEphoxDir()
Path to the directory where EditLive!
|
boolean |
isCached(java.net.URL url)
Determine if data for a URL is available in the local cache
|
@Deprecated java.io.File getCacheDir()
getEphoxDir()
insteadjava.io.File getEphoxDir()
void addTemporaryImage2(java.awt.Image imageData, java.net.URL url)
Images are downloaded on a background thread, so any change to an image element's src attribute resets the image size on screen. This method prepopulates image data in the cache to prevent flickering.
imageData
- image to cacheurl
- url for cache entry@Deprecated void addTemporaryImage(java.awt.image.RenderedImage imageData, java.net.URL url)
addTemporaryImage2(java.awt.Image, java.net.URL)
imageData
- image to cacheurl
- url for cache entryboolean isCached(java.net.URL url)
url
- URL to look upjava.lang.Object getDataFromCache(java.net.URL url)
url
- URL to look up