public void endDocument() throws SAXException { // System.out.println(getClass().getName()+".endDocument enter" ); if (stack != null && !stack.empty()) { stack.pop(); } super.endDocument(); }
/** * Write a newline at the end of the document. * * <p>Pass the event on down the filter chain for further processing. * * @exception org.xml.sax.SAXException If there is an error writing the newline, or if a handler * further down the filter chain raises an exception. * @see org.xml.sax.ContentHandler#endDocument() */ public void endDocument() throws SAXException { try { super.endDocument(); flush(); } catch (IOException e) { throw new SAXException(e); } }
public void endDocument() throws SAXException { super.endDocument(); if (autoFlush) { try { flush(); } catch (IOException e) { } } }