Ignore:
Timestamp:
2007-09-04T10:21:49+02:00 (17 years ago)
Author:
imi
Message:
  • removed MinML2 dependency (use javax.xml)
  • fixed reorder action (thanks Robert)
  • added backup files before saving (thanks Dave)
  • added search for last modifying user (thanks Dave)
  • fixed import of plugin list and added author field (thanks Shaun)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/io/OsmIdReader.java

    r298 r319  
    1111import java.util.Map;
    1212
     13import javax.xml.parsers.ParserConfigurationException;
     14import javax.xml.parsers.SAXParserFactory;
     15
    1316import org.xml.sax.Attributes;
     17import org.xml.sax.InputSource;
    1418import org.xml.sax.SAXException;
    15 
    16 import uk.co.wilson.xml.MinML2;
     19import org.xml.sax.helpers.DefaultHandler;
    1720
    1821/**
     
    2124 * @author Imi
    2225 */
    23 public class OsmIdReader extends MinML2 {
     26public class OsmIdReader extends DefaultHandler {
    2427
    2528        private boolean cancel;
     
    4144        this.in = new InputStreamReader(in, "UTF-8");
    4245                try {
    43                 parse(this.in);
     46                SAXParserFactory.newInstance().newSAXParser().parse(new InputSource(this.in), this);
     47        } catch (ParserConfigurationException e) {
     48                if (!cancel) {
     49                        e.printStackTrace(); // broken SAXException chaining
     50                        throw new SAXException(e);
     51                }
    4452        } catch (SAXException e) {
    4553                if (!cancel)
Note: See TracChangeset for help on using the changeset viewer.