|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.util.XmlRecordSetIterator
public class 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. This is for a RecordSet serialized to XML. User: Randy Wilson Date: 7/31/2014 Time: 1:58 PM
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlRecordSetIterator(String filename)
throws IOException
filename - - Filename to read a GedcomX RecordSet file from.
IOException
public XmlRecordSetIterator(InputStream inputStream,
boolean isGzipped)
throws IOException
IOException
public XmlRecordSetIterator(InputStream inputStream)
throws IOException
inputStream - - InputStream to read a GedcomX RecordSet file from.
IOException
public XmlRecordSetIterator(BufferedReader reader)
throws IOException
reader - - BufferedReader to read a GedcomX RecordSet file from.
IOException| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<Gedcomx>hasNext in interface RecordSetIteratorpublic Gedcomx next()
RecordSetIterator
next in interface Iterator<Gedcomx>next in interface RecordSetIteratorpublic Gedcomx getMetadata()
RecordSetIterator
getMetadata in interface RecordSetIteratorpublic void remove()
remove in interface Iterator<Gedcomx>remove in interface RecordSetIteratorpublic void close()
close in interface RecordSetIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||