Code example for ContentHandler

Methods: endDocument, startDocument

0
         * Equivalent to Sax <code>startDocument</code> 
         * @throws SAXException 
         */ 
        private void preParse() throws SAXException { 
            firstUnhandledException = null;
            saxContentHandler.startDocument();
        } 
 
        /** 
         * Equivalent to Sax <code>endDocument</code> 
         * @throws SAXException if any SAXExceptions have occurred during 
         *  parsing 
         */ 
        private void postParse() throws SAXException { 
            try { 
                saxContentHandler.endDocument();
            } catch (SAXException e) {
                handleSAXException(e);
            } 
            if (firstUnhandledException != null) {
                throw firstUnhandledException;