com.ephox.cache
Interface CacheManager


public interface CacheManager

Provides some basic interactions with the EditLive! local cache. Instance available via ELJBean.getCacheManager().

Since:
7.5

Method Summary
 void addTemporaryImage(RenderedImage imageData, URL url)
          Deprecated. see addTemporaryImage2(java.awt.Image, java.net.URL)
 void addTemporaryImage2(Image imageData, URL url)
          Populates the cache with data from an image URL.
 File getCacheDir()
          Deprecated. use getEphoxDir() instead
 Object getDataFromCache(URL url)
          Returns the locally cached data for a URL
 File getEphoxDir()
          Path to the directory where EditLive!
 boolean isCached(URL url)
          Determine if data for a URL is available in the local cache
 

Method Detail

getCacheDir

@Deprecated
File getCacheDir()
Deprecated. use getEphoxDir() instead

Path to the directory the local cache is stored in


getEphoxDir

File getEphoxDir()
Path to the directory where EditLive! stores its local data

Since:
8.0

addTemporaryImage2

void addTemporaryImage2(Image imageData,
                        URL url)
Populates the cache with data from an image 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.

Since:
8.0

addTemporaryImage

@Deprecated
void addTemporaryImage(RenderedImage imageData,
                                  URL url)
Deprecated. see addTemporaryImage2(java.awt.Image, java.net.URL)


isCached

boolean isCached(URL url)
Determine if data for a URL is available in the local cache


getDataFromCache

Object getDataFromCache(URL url)
Returns the locally cached data for a URL


Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.