ResourceBundleData
AbstractResourceData
, CachingResourceBundleData
, CachingResourceData
, ClassloaderResourceData
, FileResourceData
, RawResourceData
, URLResourceData
, ZipResourceData
public interface ResourceData
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
CONTENT_LENGTH |
|
static java.lang.String |
CONTENT_TYPE |
|
static java.lang.String |
FILENAME |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
getAttribute(java.lang.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.
|
java.io.InputStream |
getResourceAsStream(ResourceManager caller) |
|
long |
getVersion(ResourceManager caller) |
static final java.lang.String CONTENT_LENGTH
static final java.lang.String CONTENT_TYPE
static final java.lang.String FILENAME
java.io.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()
java.lang.Object getAttribute(java.lang.String key)
ResourceKey getKey()
long getVersion(ResourceManager caller) throws ResourceLoadingException
ResourceLoadingException