org.pentaho.reporting.libraries.resourceloader
public interface ResourceData
Field Summary | |
---|---|
static String | CONTENT_LENGTH |
static String | CONTENT_TYPE |
static String | FILENAME |
Method Summary | |
---|---|
Object | getAttribute(String key) |
ResourceKey | getKey() |
long | getLength() |
byte[] | getResource(ResourceManager caller)
This is dangerous, especially if the resource is large.
|
int | getResource(ResourceManager caller, byte[] target, long offset, int length)
Tries to read data into the given byte-array.
|
InputStream | getResourceAsStream(ResourceManager caller) |
long | getVersion(ResourceManager caller) |
Parameters: caller
Returns:
Throws: ResourceLoadingException
Parameters: caller target offset length
Returns: the number of bytes read or -1 if no more data can be read.
Throws: ResourceLoadingException