Logo Search packages:      
Sourcecode: libloader version File versions  Download package

ResourceDataCacheEntry org::jfree::resourceloader::modules::cache::oscache::OSResourceDataCache::get ( final ResourceKey  key  )  [inline]

Retrieves the given data from the cache.

Parameters:
data 

Definition at line 68 of file OSResourceDataCache.java.

  {
    final String ext = CacheUtility.externalizeKey(key);
    if (ext == null)
    {
      return null;
    }

    try
    {
      return (ResourceDataCacheEntry) dataCache.getFromCache(ext);
    }
    catch (NeedsRefreshException e)
    {
      dataCache.cancelUpdate(ext);
      dataCache.removeEntry(ext);
      return null;
    }
  }


Generated by  Doxygen 1.6.0   Back to index