SMILA 1.0 API documentation

org.eclipse.smila.connectivity.framework.crawler.web
Class WebSiteIterator

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.crawler.web.WebSiteIterator
All Implemented Interfaces:
java.util.Iterator<IndexDocument>

public class WebSiteIterator
extends java.lang.Object
implements java.util.Iterator<IndexDocument>

The Class WebSiteIterator.


Constructor Summary
WebSiteIterator(WebSite webSite, ParserManager parserManager, CrawlerPerformanceCounterHelper<WebCrawlerPerformanceAgent> performanceCounters)
          Initialize crawling.
 
Method Summary
 boolean hasNext()
          Checks if this iterator has a next document for indexing.
 IndexDocument next()
          Gets the next index document.
 void remove()
          Empty implementation of the Iterator method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSiteIterator

public WebSiteIterator(WebSite webSite,
                       ParserManager parserManager,
                       CrawlerPerformanceCounterHelper<WebCrawlerPerformanceAgent> performanceCounters)
                throws CrawlerCriticalException
Initialize crawling.

Parameters:
webSite - web site crawling configuration
performanceCounters - the performance counters
parserManager - webcrawler parsers manager
Throws:
CrawlerCriticalException - the crawler critical exception
Method Detail

hasNext

public boolean hasNext()
Checks if this iterator has a next document for indexing.

Specified by:
hasNext in interface java.util.Iterator<IndexDocument>
Returns:
boolean

next

public IndexDocument next()
Gets the next index document.

Specified by:
next in interface java.util.Iterator<IndexDocument>
Returns:
IndexDocument

remove

public void remove()
Empty implementation of the Iterator method.

Specified by:
remove in interface java.util.Iterator<IndexDocument>

SMILA 1.0 API documentation