Class CodeDocIterator

java.lang.Object
edu.suffolk.litlab.efsp.ecfcodes.CodeDocIterator
All Implemented Interfaces:
Iterator<Map<String,String>>

public class CodeDocIterator extends Object implements Iterator<Map<String,String>>
A class that iterates over Genericode XML files using constant memory.

Call CodeDocIterator.setup() to create the class, and then just treat it like any normal iterator.

See the Genericode spec for more information about the XML structure this class expects, and the XmlEventReader docs for more information about how we navigate XML.

The default XmlReaderStream would load in the entire XML file at once, and some of the files that we read in can be rather large, around 800MB (2.5GB when read in memory).