|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.util.resource.AbstractLoader
public abstract class AbstractLoader
A skeletal implementation that assumes the source is either URL or File.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.zkoss.util.resource.Loader |
---|
Loader.Resource |
Constructor Summary | |
---|---|
AbstractLoader()
|
Method Summary | |
---|---|
long |
getLastModified(java.lang.Object src)
Returns the last modified time, or -1 if reload is required or not exists. |
boolean |
shallCheck(java.lang.Object src,
long expiredMillis)
Returns whether to call Loader.getLastModified(java.lang.Object) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.zkoss.util.resource.Loader |
---|
load |
Constructor Detail |
---|
public AbstractLoader()
Method Detail |
---|
public boolean shallCheck(java.lang.Object src, long expiredMillis)
Loader
Loader.getLastModified(java.lang.Object)
.
If false, it assumes the current cached content is up-to-date.
shallCheck
in interface Loader
expiredMillis
- how many milli-seconds are expired after the last
check. In most cases, just return true if expiredMillis > 0public long getLastModified(java.lang.Object src)
Loader
getLastModified
in interface Loader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |