Package org.gedcomx.util
Interface RecordSetIterator
- All Known Implementing Classes:
JsonRecordSetIterator,XmlRecordSetIterator
Class for iterating through the 'record' elements (GedcomX documents) in a RecordSet one at a time
from a stream (e.g., a gzipped byte array) without having to inflate all the records at once.
User: Brent Hale
Date: 6/9/2015
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the input stream and/or accompanying reader if they are still open.Retrieve the metadata for the RecordSet.booleanhasNext()Tell whether the RecordIterator has another GedcomX record to return.next()Get the next Gedcomx Record from the RecordSet.voidremove()Methods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
hasNext
boolean hasNext()Tell whether the RecordIterator has another GedcomX record to return. -
next
Gedcomx next()Get the next Gedcomx Record from the RecordSet. -
getMetadata
Gedcomx getMetadata()Retrieve the metadata for the RecordSet.- Returns:
- A Gedcomx document representing the metadata (or collection information) of the RecordSet.
-
remove
void remove() -
close
void close()Close the input stream and/or accompanying reader if they are still open.
-