public abstract class AbstractResourceData extends java.lang.Object implements ResourceData, java.io.Serializable
CONTENT_LENGTH, CONTENT_TYPE, FILENAME| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getKey, getResourceAsStream, getVersionpublic byte[] getResource(ResourceManager caller) throws ResourceLoadingException
ResourceDatagetResource in interface ResourceDataResourceLoadingExceptionpublic long getLength()
getLength in interface ResourceDatapublic int getResource(ResourceManager caller, byte[] target, long offset, int length) throws ResourceLoadingException
ResourceDatagetResource in interface ResourceDataResourceLoadingException