public class PrintArticle extends Object implements IArticleFilter
| Constructor and Description |
|---|
PrintArticle(int max_count)
Example filter which prints the rendered HTML articles to System.out
The number of processed articles is limited by a maximum counter
max_count |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
process(WikiArticle article,
Siteinfo siteinfo)
Process a single Wikipedia article
|
public PrintArticle(int max_count)
max_countpublic void process(WikiArticle article, Siteinfo siteinfo) throws IOException
IArticleFilterprocess in interface IArticleFilterarticle - a Wikipedia articlesiteinfo - the site and namespace information found in the header of a
Mediawiki dump. Maybe nullIOException - throw an IOException for stopping the processingCopyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.