Class GpxParserWpt

    • Constructor Detail

      • GpxParserWpt

        public GpxParserWpt​(XMLReader reader,
                            GpxParser parent)
        Create a new specific parser. It has in memory the default parser, the contentBuffer, the elementNames and the currentPoint.
        Parameters:
        reader - The XMLReader used in the default class
        parent - The parser used in the default class
    • Method Detail

      • startElement

        public void startElement​(String uri,
                                 String localName,
                                 String qName,
                                 Attributes attributes)
                          throws SAXException
        Fires whenever an XML start markup is encountered. It saves informations about <link> in currentPoint.
        Specified by:
        startElement in interface ContentHandler
        Overrides:
        startElement in class AbstractGpxParserWpt
        Parameters:
        uri - URI of the local element
        localName - Name of the local element (without prefix)
        qName - qName of the local element (with prefix)
        attributes - Attributes of the local element (contained in the markup)
        Throws:
        SAXException - Any SAX exception, possibly wrapping another exception
      • endElement

        public void endElement​(String uri,
                               String localName,
                               String qName)
                        throws SAXException
        Fires whenever an XML end markup is encountered. It catches attributes of the waypoint and saves them in corresponding values[].
        Specified by:
        endElement in interface ContentHandler
        Overrides:
        endElement in class AbstractGpxParserWpt
        Parameters:
        uri - URI of the local element
        localName - Name of the local element (without prefix)
        qName - qName of the local element (with prefix)
        Throws:
        SAXException - Any SAX exception, possibly wrapping another exception