code: public void endDocument() throws org.xml.sax.SAXException
      {
          flushPending();
          if (m_doIndent && !m_isprevtext)
          {
              try
              {
              outputLineSep();
              }
              catch(IOException e)
              {
                  throw new SAXException(e);
              }
          }
  
          flushWriter();
          
          if (m_tracer != null)
              super.fireEndDoc();
      }
docs: Receive notification of the end of a document.
  
  @throws org.xml.sax.SAXException Any SAX exception, possibly
  wrapping another exception.
  
  @throws org.xml.sax.SAXException