Beispiel #1
0
 public void endDocument() throws SAXException {
   // System.out.println(getClass().getName()+".endDocument enter" );
   if (stack != null && !stack.empty()) {
     stack.pop();
   }
   super.endDocument();
 }
Beispiel #2
0
 /**
  * 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);
   }
 }
Beispiel #3
0
  public void endDocument() throws SAXException {
    super.endDocument();

    if (autoFlush) {
      try {
        flush();
      } catch (IOException e) {
      }
    }
  }