* This function gets executed whenever the cached files need updating
* @see org.openstreetmap.josm.io.CacheCustomContent#updateData()
*/
@Override
protected byte[] updateData() throws IOException {
String motd = new WikiReader().readLang("StartupPage");
// Save this to prefs in case JOSM is updated so MOTD can be refreshed
Main.pref.putInteger("cache.motd.html.version", myVersion);
Main.pref.put("cache.motd.html.java", myJava);
Main.pref.put("cache.motd.html.lang", myLang);
return motd.getBytes(StandardCharsets.UTF_8);