Package info.bliki.wiki.filter

Examples of info.bliki.wiki.filter.HTMLConverter


   * 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

    fInitialized = false;
    return null;
  }

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

    fInitialized = false;
    return null;
  }

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

    fInitialized = false;
    return buf.toString();
  }

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

      buf.append(HTMLConstants.CSS_SCREEN_STYLE);
      buf.append(HTMLConstants.HTML_HEADER2);
      creator.setHeader(buf.toString());
      creator.setFooter(HTMLConstants.HTML_FOOTER);
      wikiModel.setUp();
      creator.renderToFile(rawWikiText, title, new HTMLConverter(), generatedHTMLFilename);
      System.out.println("Created file: " + generatedHTMLFilename);
    } catch (IOException e) {
      e.printStackTrace();
    } catch (Exception e1) {
      e1.printStackTrace();
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

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

   *         <code>IOException</code> occured.
   */
  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 e) {
    }
    return null;
  }
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.