Examples of retrievePages()


Examples of org.wikipediacleaner.api.check.CheckWiki.retrievePages()

        }
        setText(
            GT._("Checking for errors n°{0}", Integer.toString(algorithm.getErrorNumber())) +
            " - " + algorithm.getShortDescriptionReplaced());
        errors.clear();
        checkWiki.retrievePages(algorithm, max, getWikipedia(), errors);
        while (!errors.isEmpty()) {
          CheckError error = errors.remove(0);
          int maxErrors = error.getPageCount();
          for (int numPage = 0;
              (error.getPageCount() > 0) && shouldContinue();
View Full Code Here

Examples of org.wikipediacleaner.api.check.CheckWiki.retrievePages()

    CheckWiki cw = APIFactory.getCheckWiki();
    EnumWikipedia wiki = getWikipedia();
    CheckErrorAlgorithm algorithm = CheckErrorAlgorithms.getAlgorithm(wiki, errorNumber);
    List<CheckError> errors = new ArrayList<CheckError>();
    try {
      cw.retrievePages(algorithm, 10000, wiki, errors);
      for (CheckError error: errors) {
        for (int pageNum = 0; pageNum < error.getPageCount(); pageNum++) {
          pages.add(error.getPage(pageNum));
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.