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)
           
 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

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 void process(WikiArticle article,
                    Siteinfo siteinfo)
             throws org.xml.sax.SAXException
Description copied from interface: IArticleFilter
Process a single Wikipedia article

Specified by:
process in interface IArticleFilter
Parameters:
article - a Wikipedia article
siteinfo - the site and namespace information found in the header of a Mediawiki dump. Maybe null
Throws:
org.xml.sax.SAXException - throw a SAXException for stopping the processing

main

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


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.