org.apache.cocoon.bean.helpers
Class Crawler.CrawlingIterator
java.lang.Object
org.apache.cocoon.bean.helpers.Crawler.CrawlingIterator
- All Implemented Interfaces:
- Iterator
- Enclosing class:
- Crawler
public static class Crawler.CrawlingIterator
- extends Object
- implements Iterator
Method Summary |
boolean |
hasNext()
Check if list of not visited URIs is empty |
Object |
next()
Get next not visited URIs |
void |
remove()
Removing objects is not supported, and will always throw
a UnsupportedOperationException . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Crawler.CrawlingIterator
public Crawler.CrawlingIterator(Set visitedAlready,
Map stillNotVisited)
hasNext
public boolean hasNext()
- Check if list of not visited URIs is empty
- Specified by:
hasNext
in interface Iterator
- Returns:
- boolean true iff list of not visited URIs is not empty
remove
public void remove()
- Removing objects is not supported, and will always throw
a
UnsupportedOperationException
.
- Specified by:
remove
in interface Iterator
next
public Object next()
- Get next not visited URIs
- Specified by:
next
in interface Iterator
- Returns:
- object from list of not visited URIs, move it immediatly
to set of visited URIs
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.