public abstract class GmlCoodinatesIterator extends Object implements IGmlCoordinatesIterator
Modifier and Type | Field and Description |
---|---|
protected String |
COORDINATES_DECIMAL |
protected String |
COORDINATES_SEPARATOR |
protected StringTokenizer |
coordinatesString |
protected int |
dimension |
protected GPEDefaultGmlParser |
handler |
protected IQName |
lastTag |
protected IXmlStreamReader |
parser |
protected String |
TUPLES_SEPARATOR |
Constructor and Description |
---|
GmlCoodinatesIterator() |
Modifier and Type | Method and Description |
---|---|
int |
getDimension()
Returns the dimension of the coordinate tuple being served.
|
void |
initialize(IXmlStreamReader parser,
GPEDefaultGmlParser 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 GPEDefaultGmlParser handler
protected IQName lastTag
protected int dimension
protected StringTokenizer coordinatesString
protected String TUPLES_SEPARATOR
protected String COORDINATES_SEPARATOR
protected String COORDINATES_DECIMAL
public void initialize(IXmlStreamReader parser, GPEDefaultGmlParser handler, IQName lastTag) throws XmlStreamException, IOException
IGmlCoordinatesIterator
initialize
in interface IGmlCoordinatesIterator
parser
- The XML parserhandler
- The GPE parser that contains the content handler and
the error handlerlastTag
- The last tagXmlStreamException
IOException
public void parseAll() throws XmlStreamException
IGmlCoordinatesIterator
parseAll
in interface IGmlCoordinatesIterator
XmlStreamException
public int getDimension()
ICoordinateIterator
ICoordinateIterator.next(double[])
getDimension
in interface ICoordinateIterator