info.bliki.wiki.dump
Class PrintArticle

java.lang.Object
  extended by info.bliki.wiki.dump.PrintArticle
All Implemented Interfaces:
IArticleFilter

public class PrintArticle
extends java.lang.Object
implements IArticleFilter

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)
           
 boolean process(WikiArticle article)
          Process a single Wikipedia article
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintArticle

public 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 Detail

process

public boolean process(WikiArticle article)
Description copied from interface: IArticleFilter
Process a single Wikipedia article

Specified by:
process in interface IArticleFilter
Parameters:
article - a Wikipedia article
Returns:
false, if no more articles from the dump should be parsed

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception