Package info.bliki.wiki.impl

Examples of info.bliki.wiki.impl.APIWikiModelInMemory


    wikiUser.login();

    // set up a simple cache for this example. HashMap is not usable for
    // production! Use something like http://ehcache.org for production!
    Map<String, String> contentCache = new HashMap<String, String>(2000);
    APIWikiModelInMemory wikiModel = new APIWikiModelInMemory(wikiUser, Locale.ENGLISH, "${image}", "${title}", contentCache);
    DocumentCreator documentCreator = new DocumentCreator(wikiModel, wikiUser, new String[0]);
    wikiModel.setUp();

    StringWriter writer = new StringWriter();
    documentCreator.render(articleWikiContent, articleAddress, new HTMLConverter(), writer);

    String wikiHTMLText = writer.toString();
View Full Code Here


        wikiUser.login();

        // set up a simple cache for this example. HashMap is not usable for
        // production! Use something like http://ehcache.org for production!
        Map<String, String> contentCache = new HashMap<>(2000);
        APIWikiModelInMemory wikiModel = new APIWikiModelInMemory(wikiUser, Locale.ENGLISH, "${image}", "${title}", contentCache);
        DocumentCreator documentCreator = new DocumentCreator(wikiModel, wikiUser, new String[0]);
        wikiModel.setUp();

        StringWriter writer = new StringWriter();
        documentCreator.render(articleWikiContent, articleAddress, new HTMLConverter(), writer);

        String wikiHTMLText = writer.toString();
View Full Code Here

TOP

Related Classes of info.bliki.wiki.impl.APIWikiModelInMemory

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.