org.jfree.resourceloader
public interface ResourceLoader
Method Summary | |
---|---|
ResourceKey | createKey(Object value, Map factoryKeys)
Creates a new resource key from the given object and the factory keys.
|
ResourceKey | deriveKey(ResourceKey parent, String path, Map factoryKeys)
Derives a new resource key from the given key. |
boolean | isSupportedKey(ResourceKey key)
Checks, whether this resource loader implementation was responsible for
creating this key.
|
ResourceData | load(ResourceKey key)
Loads the binary data represented by this key.
|
void | setResourceManager(ResourceManager manager) |
URL | toURL(ResourceKey key) |
Parameters: value factoryKeys
Returns: the created key or null, if the format was not recognized.
Throws: ResourceKeyCreationException if creating the key failed.
Parameters: parent the parent path the derived path (can be null). factoryKeys the optional factory keys (can be null).
Returns: the derived key.
Throws: ResourceKeyCreationException if the key cannot be derived for any reason.
Parameters: key
Returns:
Parameters: key
Returns:
Throws: ResourceLoadingException