RE: Converting elements from a SAX stream to JDOM elements
"Michael Kay" <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <790405C8C9AA47AB8F090D8D49E06B73@Sealion> |
> Unfortunately, this didn't work. I've never implemented a > dynamic proxy in Java before, and it seems that they can only > implement interfaces, not classes. Since DefaultHandler is a > class, Java refused to typecast my proxy. DefaultHandler is a helper class that implements ContentHandler. Your proxy class should either *implement* the interface ContentHandler, or *extend* the class DefaultHandler. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]