Package org.gedcomx.util
Interface RecordSetIterator
-
- All Known Implementing Classes:
JsonRecordSetIterator,XmlRecordSetIterator
public interface RecordSetIterator extends Iterator<Gedcomx>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the input stream and/or accompanying reader if they are still open.GedcomxgetMetadata()Retrieve the metadata for the RecordSet.booleanhasNext()Tell whether the RecordIterator has another GedcomX record to return.Gedcomxnext()Get the next Gedcomx Record from the RecordSet.voidremove()-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
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.
-
close
void close()
Close the input stream and/or accompanying reader if they are still open.
-
-