Vincent Hennebert wrote:
Hi,
does anyone know why the o.a.f.apps.Fop.getDefaultHandler method returns
an instance of org.xml.sax.helpers.DefaultHandler and not just an
org.xml.sax.ContentHandler? Could that be changed?
Hi Vincent,
Why would you want to change it? As Jeremias already said DefaultHandler
implemwents ContentHandler interface. I think the reason for doing such
changes is that it can more easily be tied to a SAX stream stream using
SAXParser.parse method. This method only accepts DefaultHandler not
ContentHandler. Of course you can get a reference to the XMLReader and
connect that to a ContentHandler but its just more convenient to use
SAXParser.parse.
Regards,
Chris