Class WParser

java.lang.Object
org.fastily.jwiki.core.WParser

public class WParser
extends Object
Parses wikitext into a DOM-style, manipulatable format that is easy to work with.
Author:
Fastily
  • Method Details

    • parsePage

      public static WParser.WikiText parsePage​(Wiki wiki, String page)
      Parses the text of a page into a WikiText object.
      Parameters:
      wiki - The Wiki to use
      page - The title of the page to parse.
      Returns:
      A WikiText representation of page, or null on error.
    • parseText

      public static WParser.WikiText parseText​(Wiki wiki, String text)
      Parses the text of a page into a WikiText object.
      Parameters:
      wiki - The Wiki to use
      text - The wikitext to parse
      Returns:
      A WikiText representation of text, or null on error.