Back to project page utexas-utilities.
The source code is released under:
Apache License
If you think the Android project utexas-utilities listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nasageek.utexasutilities; /* w ww .ja v a 2 s . c om*/ import com.nasageek.utexasutilities.model.Placemark; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import java.util.ArrayDeque; import java.util.Deque; public class PlacemarkSaxHandler<E extends Placemark> extends DefaultHandler { protected boolean in_coordinatestag = false; protected boolean in_nametag = false; protected StringBuffer buffer; protected Deque<E> placemarks; protected E currentPlacemark; public PlacemarkSaxHandler() { super(); } public Deque<E> getParsedData() { return this.placemarks; } @Override public void startDocument() throws SAXException { this.placemarks = new ArrayDeque<>(); } @Override public void endDocument() throws SAXException { // Nothing to do } }