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

ResourceKey org::jfree::resourceloader::loader::zip::ZipResourceLoader::createKey ( Object  value,
Map  factoryKeys 
) throws ResourceKeyCreationException [inline]

Creates a new resource key from the given object and the factory keys.

Parameters:
value 
factoryKeys 
Returns:
the created key.
Exceptions:
org.jfree.resourceloader.ResourceKeyCreationException if creating the key failed.

Implements org::jfree::resourceloader::ResourceLoader.

Definition at line 79 of file ZipResourceLoader.java.

References org::jfree::resourceloader::loader::zip::ZipEntryKey::getEntryName(), org::jfree::resourceloader::ResourceData::getKey(), and org::jfree::resourceloader::loader::zip::ZipEntryKey::getZipFile().

  {
    if (value instanceof ZipEntryKey == false)
    {
      return null;
    }

    final ZipEntryKey entryKey = (ZipEntryKey) value;
    final ResourceKey parentKey = entryKey.getZipFile().getKey();

    return new ResourceKey(parentKey, ZipResourceLoader.class.getName(),
        entryKey.getEntryName(), factoryKeys);
  }


Generated by  Doxygen 1.6.0   Back to index