|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.bliki.wiki.dump.PrintArticle
public class PrintArticle
Example filter which prints the rendered HTML articles to System.out The number of processed articles is limited by a maximum counter
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
void |
process(WikiArticle article,
Siteinfo siteinfo)
Process a single Wikipedia article |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrintArticle(int max_count)
max_count
Method Detail |
---|
public void process(WikiArticle article, Siteinfo siteinfo) throws org.xml.sax.SAXException
IArticleFilter
process
in interface IArticleFilter
article
- a Wikipedia articlesiteinfo
- the site and namespace information found in the header of a
Mediawiki dump. Maybe null
org.xml.sax.SAXException
- throw a SAXException for stopping the processingpublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |