Refactored simple SAX ElementHandler to be an interface.
[debian/openrocket] / core / src / net / sf / openrocket / file / simplesax / SimpleSAX.java
index 62dc35a9b3f18f22d6f29a822f499bb2df4b7437..ec17b77514271200d5b23123dc3d4301a302b563 100644 (file)
@@ -16,14 +16,14 @@ import org.xml.sax.helpers.XMLReaderFactory;
  * both.  This holds true for both the OpenRocket and RockSim design formats and the
  * RockSim engine definition format.
  * <p>
- * The actual handling is performed by subclasses of {@link AbstractElementHandler}.  The 
- * initial handler is provided to the {@link #readXML(InputSource, AbstractElementHandler, WarningSet)}
+ * The actual handling is performed by subclasses of {@link ElementHandler}.  The 
+ * initial handler is provided to the {@link #readXML(InputSource, ElementHandler, WarningSet)}
  * method.
  * 
  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
  */
 public class SimpleSAX {
-
+       
        /**
         * Read a simple XML file.
         * 
@@ -33,11 +33,11 @@ public class SimpleSAX {
         * @throws IOException          if an I/O exception occurs while reading.
         * @throws SAXException         if e.g. malformed XML is encountered.
         */
-       public static void readXML(InputSource source, AbstractElementHandler initialHandler,
+       public static void readXML(InputSource source, ElementHandler initialHandler,
                        WarningSet warnings) throws IOException, SAXException {
-
+               
                DelegatorHandler xmlhandler = new DelegatorHandler(initialHandler, warnings);
-
+               
                XMLReader reader = XMLReaderFactory.createXMLReader();
                reader.setContentHandler(xmlhandler);
                reader.setErrorHandler(xmlhandler);