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

public abstract class KmlCoodinatesIterator extends Object implements IKmlCoordinatesIterator
Author:
Jorge Piera LlodrĂ¡ (jorge.piera@iver.es)
  • Field Details

    • parser

      protected org.gvsig.xmlpull.lib.api.stream.IXmlStreamReader parser
    • handler

      protected GPEDeafultKmlParser handler
    • lastTag

      protected org.gvsig.xmlpull.lib.api.stream.IQName lastTag
    • dimension

      protected int dimension
    • coordinatesString

      protected StringTokenizer 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: IKmlCoordinatesIterator
      It initializes a coordinates iterator and put the parsing pointer in the specified tag
      Specified by:
      initialize in interface IKmlCoordinatesIterator
      Parameters:
      parser - The XML parser
      handler - The GPE parser that contains the content handler and the error handler
      lastTag - The last tag
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      IOException
    • getDimension

      public int getDimension()
      Specified by:
      getDimension in interface ICoordinateIterator
    • parseAll

      public void parseAll() throws org.gvsig.xmlpull.lib.api.stream.XmlStreamException
      Description copied from interface: IKmlCoordinatesIterator
      This method advances the stream reader until the last tag of the coordinates iterator.
      Specified by:
      parseAll in interface IKmlCoordinatesIterator
      Throws:
      org.gvsig.xmlpull.lib.api.stream.XmlStreamException