public class WikipediaQuickCheck extends Object
| Constructor and Description |
|---|
WikipediaQuickCheck() |
| Modifier and Type | Method and Description |
|---|---|
WikipediaQuickCheckResult |
checkPage(String plainText,
Language lang) |
MarkupAwareWikipediaResult |
checkPage(URL url) |
MarkupAwareWikipediaResult |
checkPage(URL url,
ErrorMarker errorMarker) |
List<String> |
getDisabledRuleIds() |
Language |
getLanguage(URL url) |
String |
getMediaWikiContent(URL wikipediaUrl) |
String |
getPageTitle(URL url) |
String |
getPlainText(String completeWikiContent) |
PlainTextMapping |
getPlainTextMapping(String completeWikiContent) |
static void |
main(String[] args) |
void |
setDisabledRuleIds(List<String> ruleIds) |
void |
validateWikipediaUrl(URL wikipediaUrl) |
public String getMediaWikiContent(URL wikipediaUrl) throws IOException
IOExceptionpublic MarkupAwareWikipediaResult checkPage(URL url) throws IOException, PageNotFoundException
IOExceptionPageNotFoundExceptionpublic MarkupAwareWikipediaResult checkPage(URL url, ErrorMarker errorMarker) throws IOException, PageNotFoundException
IOExceptionPageNotFoundExceptionpublic WikipediaQuickCheckResult checkPage(String plainText, Language lang) throws IOException
IOExceptionpublic void validateWikipediaUrl(URL wikipediaUrl)
public String getPlainText(String completeWikiContent)
completeWikiContent - the Mediawiki syntax as it comes from the API, including surrounding XMLpublic PlainTextMapping getPlainTextMapping(String completeWikiContent)
completeWikiContent - the Mediawiki syntax as it comes from the API, including surrounding XMLpublic static void main(String[] args) throws IOException, PageNotFoundException
IOExceptionPageNotFoundException