Class OsmXmlIterator

  • All Implemented Interfaces:
    OsmHandler, OsmIterator, Iterable<EntityContainer>, Iterator<EntityContainer>


    public class OsmXmlIterator
    extends Object
    implements OsmIterator, OsmHandler
    This class allows iteration over OSM XML data. It wraps an OsmXmlReader in a separate thread and reads data in batches into an internal buffer. When either the buffer is full or the end of the element stream has been reached, the iterator methods hasNext() and next() return data. When the buffer is not full, those methods will use a monitor to wait for more data.