|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Locator
A locator is a reference to a resource. It usually can load the resource and check if it is outdated. There is no definition for the load method, since it returns different types of objects with each type of locator.
Method Summary | |
---|---|
ResourceKey |
getKey()
Returns the key |
java.lang.Long |
getRawSize()
Returns the raw size of the resource. |
java.lang.Long |
getTimestamp()
Returns the timestamp of the resource. |
boolean |
isOutdated()
Returns true if the resource described by the locator got updated and needs to be reloaded |
void |
setRawSize(java.lang.Long rawSize)
Sets the raw size |
void |
setTimestamp(java.lang.Long timestamp)
Sets the timestamp |
java.lang.String |
toString()
A meaningful representation of the locator, mainly used for textual output e.g. in error messages |
Method Detail |
---|
ResourceKey getKey()
java.lang.Long getTimestamp()
void setTimestamp(java.lang.Long timestamp)
timestamp
- the timestamp, may be nulljava.lang.Long getRawSize()
void setRawSize(java.lang.Long rawSize)
rawSize
- the raw size, may be nullboolean isOutdated()
java.lang.String toString()
toString
in class java.lang.Object
ResourceKey.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |