Android Open Source - EatDudeAndroid Geo Default Handler

From Project

Back to project page EatDudeAndroid.


The source code is released under:

GNU General Public License

If you think the Android project EatDudeAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

 * //from   w w w  .j av a 2  s. c om
    Copyright (C) 2012  Wiley Snyder

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or 
     any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <>.
  Any other questions or concerns contact


package com.wileynet.eatdude.xml;

import java.util.HashMap;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;

public class GeoDefaultHandler extends DefaultHandler {
  String _tmpValue;
  public HashMap<String, String> info =
    new HashMap<String, String>();
  String name;
  String id;
    public void startElement(String uri, String localName, String qName,
            Attributes attributes) throws SAXException {  
        if (localName.equalsIgnoreCase("info")) {
          id = attributes.getValue("id");
          name = attributes.getValue("name");


    public void characters(char[] ch, int start, int length)
            throws SAXException {
        _tmpValue = new String(ch, start, length);

    public void endElement(String uri, String localName, String qName)
            throws SAXException {


Java Source Code List