You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Alan Ezust <al...@gmail.com> on 2005/10/18 07:41:06 UTC
JAXP - where is ObjectHandler.java?
I am trying to get some old code working, which used to use the
SAXParserFactory to create a SAXParser, and then it created an
"ObjectHandler" object to read objects from disk.
This ObjectHandler is (I believe) part of the JAXP API.
Where can I get its source? It's not in src.zip, and i can't find it
in xerces 2.7 either.
XMLReader reader = XMLReaderFactory.createXMLReader();
handler = new ObjectHandler(this, getClass().getClassLoader());
reader.setContentHandler(handler);
I can't use setContentHandler on this object because it is not the
right interface.
Is there another ObjectHandler which is SAX2 compliant (implements
ContentHandler) I should use instead?
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
Re: JAXP - where is ObjectHandler.java?
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
I have no idea what ObjectHandler is but it certainly isn't part of JAXP
(or Xerces).
Alan Ezust <al...@gmail.com> wrote on 10/18/2005 01:41:06 AM:
> I am trying to get some old code working, which used to use the
> SAXParserFactory to create a SAXParser, and then it created an
> "ObjectHandler" object to read objects from disk.
>
> This ObjectHandler is (I believe) part of the JAXP API.
> Where can I get its source? It's not in src.zip, and i can't find it
> in xerces 2.7 either.
>
> XMLReader reader = XMLReaderFactory.createXMLReader();
> handler = new ObjectHandler(this, getClass().
> getClassLoader());
> reader.setContentHandler(handler);
>
> I can't use setContentHandler on this object because it is not the
> right interface.
> Is there another ObjectHandler which is SAX2 compliant (implements
> ContentHandler) I should use instead?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
>
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org