Changeset 4821 in osm for applications/editors/josm


Ignore:
Timestamp:
2007-10-05T00:15:01+02:00 (17 years ago)
Author:
frederik
Message:

updated NameFinder to not require MinML2

Location:
applications/editors/josm/plugins/namefinder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/namefinder/namefinder/PlaceSelection.java

    r4307 r4821  
    2929import javax.swing.table.DefaultTableCellRenderer;
    3030import javax.swing.table.DefaultTableModel;
     31import javax.xml.parsers.SAXParserFactory;
    3132
    3233import org.openstreetmap.josm.Main;
     
    3536import org.openstreetmap.josm.tools.GBC;
    3637import org.xml.sax.Attributes;
     38import org.xml.sax.InputSource;
    3739import org.xml.sax.SAXException;
    38 
    39 import uk.co.wilson.xml.MinML2;
     40import org.xml.sax.helpers.DefaultHandler;
    4041
    4142public class PlaceSelection implements DownloadSelection {
     
    6869         *
    6970         */
    70         private class Parser extends MinML2
     71        private class Parser extends DefaultHandler
    7172        {
    7273                private SearchResult currentResult = null;
     
    169170                                        activeConnection.setConnectTimeout(15000);
    170171                                        InputStream inputStream = activeConnection.getInputStream();
    171                                         new Parser().parse(new InputStreamReader(inputStream, "UTF-8"));
     172                                        InputSource inputSource = new InputSource(new InputStreamReader(inputStream, "UTF-8"));
     173                                SAXParserFactory.newInstance().newSAXParser().parse(inputSource, new Parser());
    172174                                }
    173175                                catch (Exception x)
Note: See TracChangeset for help on using the changeset viewer.