public abstract class KmlCoodinatesIterator extends Object implements IKmlCoordinatesIterator
Modifier and Type | Field and Description |
---|---|
protected StringTokenizer |
coordinatesString |
protected int |
dimension |
protected GPEDeafultKmlParser |
handler |
protected IQName |
lastTag |
protected IXmlStreamReader |
parser |
Constructor and Description |
---|
KmlCoodinatesIterator() |
Modifier and Type | Method and Description |
---|---|
int |
getDimension()
Returns the dimension of the coordinate tuple being served.
|
void |
initialize(IXmlStreamReader parser,
GPEDeafultKmlParser handler,
IQName lastTag)
It initializes a coordinates iterator and put the
parsing pointer in the specified tag
|
void |
parseAll()
This method advances the stream reader until the last
tag of the coordinates iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasNext, next
protected IXmlStreamReader parser
protected GPEDeafultKmlParser handler
protected IQName lastTag
protected int dimension
protected StringTokenizer coordinatesString
public void initialize(IXmlStreamReader parser, GPEDeafultKmlParser handler, IQName lastTag) throws XmlStreamException, IOException
IKmlCoordinatesIterator
initialize
in interface IKmlCoordinatesIterator
parser
- The XML parserhandler
- The GPE parser that contains the content handler and
the error handlerlastTag
- The last tagXmlStreamException
IOException
public int getDimension()
ICoordinateIterator
ICoordinateIterator.next(double[])
getDimension
in interface ICoordinateIterator
public void parseAll() throws XmlStreamException
IKmlCoordinatesIterator
parseAll
in interface IKmlCoordinatesIterator
XmlStreamException