Package org.openstreetmap.josm.tools

Examples of org.openstreetmap.josm.tools.WikiReader


         * 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);
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.tools.WikiReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.