public class FileDocumentIterator extends java.lang.Object implements DocumentIterator
Constructor and Description |
---|
FileDocumentIterator(java.io.File path) |
FileDocumentIterator(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Whether there are anymore documents in the iterator
|
java.io.InputStream |
nextDocument()
Get the next document
|
void |
reset()
Reset the iterator to the beginning
|
public FileDocumentIterator(java.lang.String path)
public FileDocumentIterator(java.io.File path)
public java.io.InputStream nextDocument()
DocumentIterator
nextDocument
in interface DocumentIterator
public boolean hasNext()
DocumentIterator
hasNext
in interface DocumentIterator
public void reset()
DocumentIterator
reset
in interface DocumentIterator