public class XmlRecordSetIterator extends Object implements RecordSetIterator
| Constructor and Description |
|---|
XmlRecordSetIterator(BufferedReader reader)
Constructor for a record iterator that takes a BufferedReader of a RecordSet file and iterates through its record elements.
|
XmlRecordSetIterator(InputStream inputStream)
Constructor for a record iterator that takes an InputStream of a RecordSet file and iterates through its record elements.
|
XmlRecordSetIterator(InputStream inputStream,
boolean isGzipped) |
XmlRecordSetIterator(String filename)
Constructor for a record iterator that takes a filename of a RecordSet file and iterates through its record elements.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the input stream and accompanying reader if they are still open.
|
Gedcomx |
getMetadata()
Retrieve the metadata for the RecordSet.
|
boolean |
hasNext()
Tell whether the RecordIterator has another GedcomX record to return.
|
Gedcomx |
next()
Get the next Gedcomx Record from the RecordSet.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic XmlRecordSetIterator(String filename) throws IOException
filename - - Filename to read a GedcomX RecordSet file from.IOException - If there's an I/O problem.public XmlRecordSetIterator(InputStream inputStream, boolean isGzipped) throws IOException
IOExceptionpublic XmlRecordSetIterator(InputStream inputStream) throws IOException
inputStream - - InputStream to read a GedcomX RecordSet file from.IOException - If there's an I/O problem.public XmlRecordSetIterator(BufferedReader reader) throws IOException
reader - - BufferedReader to read a GedcomX RecordSet file from.IOException - If there's an I/O problem.public boolean hasNext()
hasNext in interface Iterator<Gedcomx>hasNext in interface RecordSetIteratorpublic Gedcomx next()
RecordSetIteratornext in interface Iterator<Gedcomx>next in interface RecordSetIteratorpublic Gedcomx getMetadata()
RecordSetIteratorgetMetadata in interface RecordSetIteratorpublic void remove()
remove in interface Iterator<Gedcomx>remove in interface RecordSetIteratorpublic void close()
close in interface RecordSetIteratorCopyright © 2016. All rights reserved.