public abstract class CrawlDataIterator extends Object
Constructor and Description |
---|
CrawlDataIterator(String source)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Close any resources held open to read the crawl data.
|
abstract String |
getSourceType()
A short, human readable, string about what source this iterator uses.
|
abstract boolean |
hasNext()
Are there more elements?
|
abstract CrawlDataItem |
next()
Get the next
CrawlDataItem . |
public CrawlDataIterator(String source)
source
- The location of the crawl data. The meaning of this value may vary based on the implementation of
concrete subclasses. Typically it will refer to a directory or a file.public abstract boolean hasNext() throws IOException
IOException
- If an error occurs accessing the crawl data.public abstract CrawlDataItem next() throws IOException
CrawlDataItem
.IOException
- If an error occurs accessing the crawl data.public abstract void close() throws IOException
IOException
- If an error occurs closing access to crawl data.public abstract String getSourceType()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.