bir
Class NextPageIterator

java.lang.Object
  extended by bir.NextPageIterator

public class NextPageIterator
extends java.lang.Object

This class provides a way to extract links from a page for the determining of which subpages to investigate.


Constructor Summary
NextPageIterator()
           
 
Method Summary
static java.util.ArrayList<Page> getNextPages(Page page, int pageLimit)
          This method extracts all the links in tags from the page passed in and creates new Page objects for them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NextPageIterator

public NextPageIterator()
Method Detail

getNextPages

public static java.util.ArrayList<Page> getNextPages(Page page,
                                                     int pageLimit)
This method extracts all the links in tags from the page passed in and creates new Page objects for them. This list of subpages is then shortened using random selection down to max of pageLimit.

Parameters:
page - The HTML page to extract links from
pageLimit - The maximum number of subpages to explore
Returns:
An ArrayList of the SubPages based on the links