Package org.jfree.resourceloader

Examples of org.jfree.resourceloader.ResourceData


  public long getVersion(ResourceManager caller)
          throws ResourceLoadingException
  {
    final ResourceKey parentKey = key.getParent();
    final ResourceData data = caller.load(parentKey);
    return data.getVersion(caller);
  }
View Full Code Here


      final String pfbFileName = fontType.substring
              (0, fontType.length() - 4) + ".pfb";
      try
      {
        final ResourceKey pfbKey = manager.deriveKey(key, pfbFileName);
        ResourceData res = manager.load(pfbKey);
        pfb = res.getResource(manager);
        dc.add(pfbKey, res.getVersion(manager));
      }
      catch (ResourceException e)
      {
        // ignore ..
      }
View Full Code Here

   * @return the resource data object, possibly wrapped by a cache-specific
   *         implementation.
   */
  public ResourceData put(ResourceManager caller, ResourceData data) throws ResourceLoadingException
  {
    final ResourceData cdata = CachingResourceData.createCached(data);
    dataCache.put(new Element(data.getKey(), new DefaultResourceDataCacheEntry(cdata, caller)));
    return cdata;
  }
View Full Code Here

   *         implementation.
   */
  public ResourceData put(final ResourceManager caller, final ResourceData data)
          throws ResourceLoadingException
  {
    final ResourceData cdata = CachingResourceData.createCached(data);
    final String ext = CacheUtility.externalizeKey(data.getKey());
    if (ext == null)
    {
      return cdata;
    }
View Full Code Here

   * @return the resource data object, possibly wrapped by a cache-specific
   *         implementation.
   */
  public ResourceData put(final ResourceManager caller, final ResourceData data) throws ResourceLoadingException
  {
    final ResourceData cdata = CachingResourceData.createCached(data);
    dataCache.put(new Element(data.getKey(), new DefaultResourceDataCacheEntry(cdata, caller)));
    return cdata;
  }
View Full Code Here

TOP

Related Classes of org.jfree.resourceloader.ResourceData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.