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