Interface DocumentIterator
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
LabelAwareDocumentIterator
- All Known Implementing Classes:
FileDocumentIterator
public interface DocumentIterator extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()Whether there are anymore documents in the iteratorInputStreamnextDocument()Get the next documentvoidreset()Reset the iterator to the beginning
-
-
-
Method Detail
-
nextDocument
InputStream nextDocument()
Get the next document- Returns:
- the input stream for the next document
-
hasNext
boolean hasNext()
Whether there are anymore documents in the iterator- Returns:
- whether there are anymore documents in the iterator
-
reset
void reset()
Reset the iterator to the beginning
-
-