Package org.openstreetmap.josm.gui
Class GettingStarted.MotdContent
java.lang.Object
org.openstreetmap.josm.io.CacheCustomContent<IOException>
org.openstreetmap.josm.gui.GettingStarted.MotdContent
- Enclosing class:
- GettingStarted
Grabs current MOTD from cache or webpage and parses it.
-
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.io.CacheCustomContent
INTERVAL_ALWAYS, INTERVAL_DAILY, INTERVAL_HOURLY, INTERVAL_MONTHLY, INTERVAL_NEVER, INTERVAL_WEEKLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanAdditionally check if JOSM has been updated and refresh MOTDprotected booleanChecks underlying resource is not accessed in offline mode.protected byte[]This function gets executed whenever the cached files need updatingMethods inherited from class org.openstreetmap.josm.io.CacheCustomContent
flushData, getData, getDataString, updateForceString, updateIfRequired, updateIfRequiredString
-
Field Details
-
myVersion
-
myJava
-
myLang
-
-
Constructor Details
-
MotdContent
-
-
Method Details
-
updateData
This function gets executed whenever the cached files need updating- Specified by:
updateDatain classCacheCustomContent<IOException>- Returns:
- the data to cache
- Throws:
IOException- See Also:
-
isOffline
Description copied from class:CacheCustomContentChecks underlying resource is not accessed in offline mode.- Specified by:
isOfflinein classCacheCustomContent<IOException>- Returns:
- whether resource is accessed in offline mode
-
isCacheValid
Additionally check if JOSM has been updated and refresh MOTD- Overrides:
isCacheValidin classCacheCustomContent<IOException>- Returns:
- True if the cached copy is still valid
-