org.jfree.resourceloader
Interface ResourceLoader
A resource loader knows how to get binary rawdata from a location specified
by an resource key. A resource key is a wrapper around any kind of data that
is suitable to identify a resource location. The resource key can also hold
configuration data for the factory.
If the storage system is hierarchical, a new resource key can be derived from
a given path-string.
deriveKey
public ResourceKey deriveKey(ResourceKey parent,
String path,
Map factoryKeys)
throws ResourceKeyCreationException
Derives a new resource key from the given key. If neither a path nor new
factory-keys are given, the parent key is returned.
parent
- the parentpath
- the derived path (can be null).factoryKeys
- the optional factory keys (can be null).
isSupportedKey
public boolean isSupportedKey(ResourceKey key)
Checks, whether this resource loader implementation was responsible for
creating this key.