Class KmlCoodinatesIterator
java.lang.Object
org.gvsig.gpe.prov.kml.parser.v21.coordinates.KmlCoodinatesIterator
- All Implemented Interfaces:
ICoordinateIterator,IKmlCoordinatesIterator
- Direct Known Subclasses:
CoordinatesTypeIterator,LatLonAltBoxIterator,LatLonBoxIterator
- Author:
- Jorge Piera LlodrĂ¡ (jorge.piera@iver.es)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringTokenizerprotected intprotected GPEDeafultKmlParserprotected org.gvsig.xmlpull.lib.api.stream.IQNameprotected org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidinitialize(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser, GPEDeafultKmlParser 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
-
-
Constructor Details
-
KmlCoodinatesIterator
public KmlCoodinatesIterator()
-
-
Method Details
-
initialize
public void initialize(org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser, GPEDeafultKmlParser handler, org.gvsig.xmlpull.lib.api.stream.IQName lastTag) throws org.gvsig.xmlpull.lib.api.stream.XmlStreamException, IOException Description copied from interface:IKmlCoordinatesIteratorIt initializes a coordinates iterator and put the parsing pointer in the specified tag- Specified by:
initializein interfaceIKmlCoordinatesIterator- 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
-
getDimension
public int getDimension()- Specified by:
getDimensionin interfaceICoordinateIterator
-
parseAll
public void parseAll() throws org.gvsig.xmlpull.lib.api.stream.XmlStreamExceptionDescription copied from interface:IKmlCoordinatesIteratorThis method advances the stream reader until the last tag of the coordinates iterator.- Specified by:
parseAllin interfaceIKmlCoordinatesIterator- Throws:
org.gvsig.xmlpull.lib.api.stream.XmlStreamException
-