/** * Fires whenever an XML start markup is encountered. It creates a new trackSegment when a * <trkseg> markup is encountered. It creates a new trackPoint when a <trkpt> markup is * encountered. It saves informations about <link> in currentPoint or currentLine. * * @param uri URI of the local element * @param localName Name of the local element (without prefix) * @param qName qName of the local element (with prefix) * @param attributes Attributes of the local element (contained in the markup) * @throws SAXException Any SAX exception, possibly wrapping another exception */ @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { super.startElement(uri, localName, qName, attributes); if (localName.equalsIgnoreCase(GPXTags.LINK)) { if (isPoint()) { getCurrentPoint().setLink(attributes); } else { getCurrentLine().setLink(attributes); } } }