Changeset 4821 in osm for applications/editors
- Timestamp:
- 2007-10-05T00:15:01+02:00 (17 years ago)
- Location:
- applications/editors/josm/plugins/namefinder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/namefinder/namefinder/PlaceSelection.java
r4307 r4821 29 29 import javax.swing.table.DefaultTableCellRenderer; 30 30 import javax.swing.table.DefaultTableModel; 31 import javax.xml.parsers.SAXParserFactory; 31 32 32 33 import org.openstreetmap.josm.Main; … … 35 36 import org.openstreetmap.josm.tools.GBC; 36 37 import org.xml.sax.Attributes; 38 import org.xml.sax.InputSource; 37 39 import org.xml.sax.SAXException; 38 39 import uk.co.wilson.xml.MinML2; 40 import org.xml.sax.helpers.DefaultHandler; 40 41 41 42 public class PlaceSelection implements DownloadSelection { … … 68 69 * 69 70 */ 70 private class Parser extends MinML271 private class Parser extends DefaultHandler 71 72 { 72 73 private SearchResult currentResult = null; … … 169 170 activeConnection.setConnectTimeout(15000); 170 171 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()); 172 174 } 173 175 catch (Exception x)
Note:
See TracChangeset
for help on using the changeset viewer.