* 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.
*
* @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);