All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.bliki.wiki.dump.IArticleFilter Maven / Gradle / Ivy

The newest version!
package info.bliki.wiki.dump;

import java.io.IOException;

/**
 * Interface for a filter which processes all articles from a given wikipedia
 * XML dump file
 */
public interface IArticleFilter {
    /**
     * Process a single Wikipedia article
     *
     * @param article
     *          a Wikipedia article
     * @param siteinfo
     *          the site and namespace information found in the header of a
     *          Mediawiki dump. Maybe null
     * @throws IOException
     *           throw an IOException for stopping the processing
     */
    void process(WikiArticle article, Siteinfo siteinfo) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy