Package info.bliki.wiki.filter

Examples of info.bliki.wiki.filter.HTMLConverter


    /**
     * {@inheritDoc}
     */
    @Override
    public String render(String rawWikiText, boolean templateTopic) {
        return render(new HTMLConverter(), rawWikiText, templateTopic);
    }
View Full Code Here


     *            links to other wiki topics.
     * @throws IOException
     */
    public static void toHtml(String rawWikiText, Appendable resultBuffer,
            String imageBaseURL, String linkBaseURL) throws IOException {
        toText(new WikiModel(imageBaseURL, linkBaseURL), new HTMLConverter(),
                rawWikiText, resultBuffer, false, false);
    }
View Full Code Here

     *            the buffer to which to append the resulting HTML code.
     * @throws IOException
     */
    public static void toHtml(String rawWikiText, Appendable resultBuffer)
            throws IOException {
        toText(new WikiModel("/${image}", "/${title}"), new HTMLConverter(),
                rawWikiText, resultBuffer, false, false);
    }
View Full Code Here

    public static String toHtml(String rawWikiText) {
        try {
            StringBuilder resultBuffer = new StringBuilder(rawWikiText.length()
                    + rawWikiText.length() / 10);
            toText(new WikiModel("/${image}", "/${title}"),
                    new HTMLConverter(), rawWikiText, resultBuffer, false,
                    false);
            return resultBuffer.toString();
        } catch (IOException ignored) {
        }
        return null;
View Full Code Here

        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();
        System.out.println(wikiHTMLText);
    }
View Full Code Here

     * Render the given Wikipedia texts into an HTML string and use the default
     * HTMLConverter.
     *
     */
    public void render(Appendable appendable) throws IOException {
        render(new HTMLConverter(), appendable);
    }
View Full Code Here

    /**
     * Render the given Wikipedia texts into an HTML file.
     *
     */
    public void renderToFile(String filename) throws IOException {
        renderToFile(new HTMLConverter(), filename);
    }
View Full Code Here

     * Render the given Wikipedia texts into an HTML string and use the default
     * HTMLConverter.
     *
     */
    public void render(Appendable appendable) throws IOException {
        render(new HTMLConverter(), appendable);
    }
View Full Code Here

    /**
     * Render the given Wikipedia texts into an HTML file.
     *
     */
    public void renderToFile(String filename) throws IOException {
        renderToFile(new HTMLConverter(), filename);
    }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public String render(String rawWikiText) {
    return render(new HTMLConverter(), rawWikiText);
  }
View Full Code Here

TOP

Related Classes of info.bliki.wiki.filter.HTMLConverter

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.