public abstract class KmlCoodinatesIterator extends java.lang.Object implements IKmlCoordinatesIterator
| Modifier and Type | Field and Description |
|---|---|
protected java.util.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, waithasNext, nextprotected IXmlStreamReader parser
protected GPEDeafultKmlParser handler
protected IQName lastTag
protected int dimension
protected java.util.StringTokenizer coordinatesString
public void initialize(IXmlStreamReader parser,
GPEDeafultKmlParser handler,
IQName lastTag)
throws XmlStreamException,
java.io.IOException
IKmlCoordinatesIteratorinitialize in interface IKmlCoordinatesIteratorparser - The XML parserhandler - The GPE parser that contains the content handler and
the error handlerlastTag - The last tagXmlStreamExceptionjava.io.IOExceptionpublic int getDimension()
ICoordinateIteratorICoordinateIterator.next(double[])getDimension in interface ICoordinateIteratorpublic void parseAll()
throws XmlStreamException
IKmlCoordinatesIteratorparseAll in interface IKmlCoordinatesIteratorXmlStreamException