org.pentaho.reporting.libraries.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.
|
URL | toURL(ResourceKey key) |
Parameters: value the key value. factoryKeys optional parameter map (can be null).
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 the key that should be tested.
Returns: true, if the key is supported.
Parameters: key
Returns:
Throws: ResourceLoadingException