| Constructor and Description |
|---|
FileListDocumentIterator(String fileListName)
Creates an
Iterator over the files listed in the provided file. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true if there are more documents to return. |
Document |
next()
Returns the next document from the list.
|
void |
remove()
Throws an
UnsupportedOperationException if called. |
public FileListDocumentIterator(String fileListName) throws IOException
Iterator over the files listed in the provided file.IOException - if any error occurs when reading fileListNamepublic boolean hasNext()
true if there are more documents to return.public Document next()
public void remove()
UnsupportedOperationException if called.Copyright © 2012. All Rights Reserved.