public class PosTypeIterator extends GmlCoodinatesIterator
COORDINATES_DECIMAL, COORDINATES_SEPARATOR, coordinatesString, dimension, handler, lastTag, parser, TUPLES_SEPARATOR| Constructor and Description |
|---|
PosTypeIterator() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDimension()
Returns the dimension of the coordinate tuple being served.
|
boolean |
hasNext()
Returns whether there are more coordinates in this sequence
|
void |
initialize(IXmlStreamReader parser,
GPEDefaultGmlParser handler,
IQName lastTag)
It initializes a coordinates iterator and put the
parsing pointer in the specified tag
|
void |
next(double[] buffer) |
parseAllpublic void initialize(IXmlStreamReader parser,
GPEDefaultGmlParser handler,
IQName lastTag)
throws XmlStreamException,
java.io.IOException
IGmlCoordinatesIteratorinitialize in interface IGmlCoordinatesIteratorinitialize in class GmlCoodinatesIteratorparser - The XML parserhandler - The GPE parser that contains the content handler and
the error handlerlastTag - The last tagXmlStreamExceptionjava.io.IOExceptionpublic boolean hasNext()
throws java.io.IOException
ICoordinateIteratorjava.io.IOExceptionpublic void next(double[] buffer)
throws java.io.IOException
buffer - where to store the parsed coordinates. The buffer lenght shall be >=
ICoordinateIterator.getDimension()java.io.IOExceptionpublic int getDimension()
ICoordinateIteratorICoordinateIterator.next(double[])getDimension in interface ICoordinateIteratorgetDimension in class GmlCoodinatesIterator