public class OsmXmlIterator extends Objectimplements OsmIterator , OsmHandler
hasNext()
and
next()
return data. When the buffer is not full, those methods will use a monitor to wait for more data.
Constructor and Description |
---|
OsmXmlIterator(File
|
OsmXmlIterator(InputStream
|
OsmXmlIterator(String
|
Modifier and Type | Method and Description |
---|---|
void |
complete()
|
OsmBounds |
getBounds()
|
void |
handle(OsmBounds
|
void |
handle(OsmNode
|
void |
handle(OsmRelation
|
void |
handle(OsmWay
|
boolean |
hasBounds()
|
boolean |
hasNext()
|
Iterator |
iterator()
|
EntityContainer |
next()
|
void |
remove()
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
forEachRemaining
public OsmXmlIterator(InputStreaminputStream, boolean parseMetadata)
public OsmXmlIterator(Filefile, boolean parseMetadata) throws FileNotFoundException
FileNotFoundException
public OsmXmlIterator(Stringpathname, boolean parseMetadata) throws FileNotFoundException
FileNotFoundException
public Iterator<EntityContainer > iterator()
public boolean hasNext()
public EntityContainernext()
public void remove()
public void complete()
public void handle(OsmBoundsbounds) throws IOException
handle
in interface
OsmHandler
IOException
public void handle(OsmNodenode)
public void handle(OsmWayway)
public void handle(OsmRelationrelation)
public boolean hasBounds()
public OsmBoundsgetBounds()