/** * Finish processing an element. * * @param uri the URI. * @param localName the local name. * @param qName the qName. * * @throws SAXException if there is a parsing error. */ public void endElement(final String uri, final String localName, final String qName) throws SAXException { try { getCurrentHandler().endElement(qName); } catch (XmlReaderException xre) { throw new ParseException(xre, getLocator()); } }
/** * Process character data. * * @param ch the character buffer. * @param start the start index. * @param length the length of the character data. * * @throws SAXException if there is a parsing error. */ public void characters(final char[] ch, final int start, final int length) throws SAXException { try { getCurrentHandler().characters(ch, start, length); } catch (SAXException se) { throw se; } catch (Exception e) { throw new ParseException(e, getLocator()); } }
/** * Receive notification of character data inside an element. * * <p>By default, do nothing. Application writers may override this * method to take specific actions for each chunk of character data * (such as adding the data to a node or buffer, or printing it to * a file).</p> * * @param ch the characters. * @param start the start position in the character array. * @param length the number of characters to use from the character array. * * @exception SAXException Any SAX exception, possibly wrapping another exception. * @see org.xml.sax.ContentHandler#characters */ public void characters(final char[] ch, final int start, final int length) throws SAXException { try { peekFactory().characters(ch, start, length); } catch (ParseException pe) { throw pe; } catch (Exception e) { throw new ParseException(e, getLocator()); } }
/** * Starts processing an element. * * @param uri the URI. * @param localName the local name. * @param qName the qName. * @param attributes the attributes. * * @throws SAXException if there is a parsing problem. */ public void startElement(final String uri, final String localName, final String qName, final Attributes attributes) throws SAXException { if (this.rootHandlerInitialized == false) { this.rootHandler.init(this, qName); this.rootHandlerInitialized = true; } try { getCurrentHandler().startElement(qName, attributes); } catch (XmlReaderException xre) { throw new ParseException(xre, getLocator()); } }
throw new ParseException(e, getLocator());
throw new ParseException(e, getLocator());