public class CoordinatesTypeIterator extends KmlCoodinatesIterator
<coordinates>60.0,60.0 60.0,90.0 90.0,90.0</coordinates>
http://code.google.com/apis/kml/documentation/kml_tags_21.html#coordinates
dimension, handler, lastTag, parser
Constructor and Description |
---|
CoordinatesTypeIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns whether there are more coordinates in this sequence
|
void |
initialize(IXmlStreamReader parser,
GPEDeafultKmlParser handler,
IQName lastTag)
It parses the gml:coordinates tag
|
void |
next(double[] buffer) |
getDimension, parseAll
public void initialize(IXmlStreamReader parser, GPEDeafultKmlParser handler, IQName lastTag) throws XmlStreamException, IOException
initialize
in interface IKmlCoordinatesIterator
initialize
in class KmlCoodinatesIterator
parser
- The XML parserhandler
- The GPE parser that contains the content handler and
the error handlerlastTag
- The last tagXmlStreamException
IOException
public boolean hasNext() throws IOException
ICoordinateIterator
IOException
public void next(double[] buffer) throws IOException
buffer
- where to store the parsed coordinates. The buffer lenght shall be >=
ICoordinateIterator.getDimension()
IOException