On 5/7/2013 12:49 AM, Alan Bateman wrote:
On 07/05/2013 08:39, huizhe wang wrote:
:
:
- DocumentBuilderFactory still says that SAXException is throw by
DocumentBuilderFactory.
Yes, that's what's in the jaxp1.3/1.4 spec unfortunately. Both DOM
and SAX throws SAXException. It should have defined a DOMException
for DOM operations.
I understand that. I was trying to point out the words "thrown by
DocumentBuilder" should really be "thrown the parse methods defined by
DocumentBuilder".
Ah, I see! It now reads:
* {@link org.xml.sax.SAXException} will be thrown by the
parse methods defined by
* {@link javax.xml.parsers.DocumentBuilder}.
and for SAXParser:
{@link org.xml.sax.SAXException} will be thrown by the parse
methods defined by {@link javax.xml.parsers.SAXParser}.
and for XMLInputFactory
{@link javax.xml.stream.XMLStreamException}
* will be thrown by {@link
javax.xml.stream.XMLStreamReader#next()} or
* {@link javax.xml.stream.XMLEventReader#nextEvent()}.
Otherwise I think this is good to go.
Thanks!
Joe
-Alan.