code: public void endDocument() throws org.xml.sax.SAXException
    {
      flushPending();
      flushWriter();
      if (m_tracer != null)
          super.fireEndDoc();
    }
docs: Receive notification of the end of a document.
  
  <p>The SAX parser will invoke this method only once, and it will
  be the last method invoked during the parse.  The parser shall
  not invoke this method until it has either abandoned parsing
  (because of an unrecoverable error) or reached the end of
  input.</p>
  
  @throws org.xml.sax.SAXException Any SAX exception, possibly
  wrapping another exception.
  
  @throws org.xml.sax.SAXException