Class GmlCoodinatesIterator
java.lang.Object
org.gvsig.gpe.prov.gml.parser.v2.coordiates.GmlCoodinatesIterator
- All Implemented Interfaces:
ICoordinateIterator,IGmlCoordinatesIterator
- Direct Known Subclasses:
CoordinatesTypeIterator,CoordTypeIterator,PosListTypeIterator,PosTypeIterator
- Author:
- Jorge Piera LlodrĂ¡ (jorge.piera@iver.es)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected StringTokenizerprotected intprotected GPEDefaultGmlParserprotected org.gvsig.xmlpull.lib.api.stream.IQNameprotected org.gvsig.xmlpull.lib.api.stream.IXmlStreamReaderprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidinitialize(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser, GPEDefaultGmlParser handler, org.gvsig.xmlpull.lib.api.stream.IQName lastTag) It initializes a coordinates iterator and put the parsing pointer in the specified tagvoidparseAll()This method advances the stream reader until the last tag of the coordinates iterator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.gpe.lib.api.parser.ICoordinateIterator
hasNext, next
-
Field Details
-
parser
protected org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser -
handler
-
lastTag
protected org.gvsig.xmlpull.lib.api.stream.IQName lastTag -
dimension
protected int dimension -
coordinatesString
-
TUPLES_SEPARATOR
-
COORDINATES_SEPARATOR
-
COORDINATES_DECIMAL
-
-
Constructor Details
-
GmlCoodinatesIterator
public GmlCoodinatesIterator()
-
-
Method Details
-
initialize
public void initialize(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser, GPEDefaultGmlParser handler, org.gvsig.xmlpull.lib.api.stream.IQName lastTag) throws org.gvsig.xmlpull.lib.api.stream.XmlStreamException, IOException Description copied from interface:IGmlCoordinatesIteratorIt initializes a coordinates iterator and put the parsing pointer in the specified tag- Specified by:
initializein interfaceIGmlCoordinatesIterator- Parameters:
parser- The XML parserhandler- The GPE parser that contains the content handler and the error handlerlastTag- The last tag- Throws:
org.gvsig.xmlpull.lib.api.stream.XmlStreamExceptionIOException
-
parseAll
public void parseAll() throws org.gvsig.xmlpull.lib.api.stream.XmlStreamExceptionDescription copied from interface:IGmlCoordinatesIteratorThis method advances the stream reader until the last tag of the coordinates iterator.- Specified by:
parseAllin interfaceIGmlCoordinatesIterator- Throws:
org.gvsig.xmlpull.lib.api.stream.XmlStreamException
-
getDimension
public int getDimension()- Specified by:
getDimensionin interfaceICoordinateIterator
-