org.openstreetmap.josm.gui
Class GettingStarted.MotdContent

java.lang.Object
  extended by org.openstreetmap.josm.io.CacheCustomContent<java.io.IOException>
      extended by org.openstreetmap.josm.gui.GettingStarted.MotdContent
Enclosing class:
GettingStarted

private static class GettingStarted.MotdContent
extends CacheCustomContent<java.io.IOException>

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

myVersion

private final int myVersion

myLang

private final java.lang.String myLang
Constructor Detail

GettingStarted.MotdContent

public GettingStarted.MotdContent()
Method Detail

updateData

protected byte[] updateData()
                     throws java.io.IOException
This function gets executed whenever the cached files need updating

Specified by:
updateData in class CacheCustomContent<java.io.IOException>
Returns:
the data to cache
Throws:
java.io.IOException
See Also:
CacheCustomContent.updateData()

isCacheValid

protected boolean isCacheValid()
Additionally check if JOSM has been updated and refresh MOTD

Overrides:
isCacheValid in class CacheCustomContent<java.io.IOException>
Returns:
True if the cached copy is still valid


JOSM