public interface ResourceData
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_LENGTH |
static String |
CONTENT_TYPE |
static String |
FILENAME |
Modifier and Type | Method and Description |
---|---|
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) |
static final String CONTENT_LENGTH
static final String CONTENT_TYPE
static final String FILENAME
InputStream getResourceAsStream(ResourceManager caller) throws ResourceLoadingException
ResourceLoadingException
byte[] getResource(ResourceManager caller) throws ResourceLoadingException
caller
- ResourceLoadingException
int getResource(ResourceManager caller, byte[] target, long offset, int length) throws ResourceLoadingException
caller
- target
- offset
- length
- ResourceLoadingException
long getLength()
ResourceKey getKey()
long getVersion(ResourceManager caller) throws ResourceLoadingException
ResourceLoadingException