|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.io.CacheCustomContent<java.io.IOException>
org.openstreetmap.josm.gui.GettingStarted.MotdContent
private static class GettingStarted.MotdContent
Grabs current MOTD from cache or webpage and parses it.
Field Summary | |
---|---|
private java.lang.String |
myLang
|
private int |
myVersion
|
Fields inherited from class org.openstreetmap.josm.io.CacheCustomContent |
---|
INTERVAL_ALWAYS, INTERVAL_DAILY, INTERVAL_HOURLY, INTERVAL_MONTHLY, INTERVAL_NEVER, INTERVAL_WEEKLY |
Constructor Summary | |
---|---|
GettingStarted.MotdContent()
|
Method Summary | |
---|---|
protected boolean |
isCacheValid()
Additionally check if JOSM has been updated and refresh MOTD |
protected byte[] |
updateData()
This function gets executed whenever the cached files need updating |
Methods inherited from class org.openstreetmap.josm.io.CacheCustomContent |
---|
flushData, getData, getDataString, updateForce, updateForceString, updateIfRequired, updateIfRequiredString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int myVersion
private final java.lang.String myLang
Constructor Detail |
---|
public GettingStarted.MotdContent()
Method Detail |
---|
protected byte[] updateData() throws java.io.IOException
updateData
in class CacheCustomContent<java.io.IOException>
java.io.IOException
CacheCustomContent.updateData()
protected boolean isCacheValid()
isCacheValid
in class CacheCustomContent<java.io.IOException>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |