Code example for ContentHandler

Methods: endDocument, startDocument

0
        catch(TransformerException te)
        { 
            throw new SAXException(te);
        } 
      } 
      m_resultContentHandler.startDocument();
      m_flushedStartDoc = true;
    } 
  } 
 
  /** 
   * Receive notification of the end of the document. 
   * 
   * <p>By default, do nothing.  Application writers may override this 
   * method in a subclass to take specific actions at the end 
   * of a document (such as finalising a tree or closing an output 
   * file).</p> 
   * 
   * @throws org.xml.sax.SAXException Any SAX exception, possibly 
   *            wrapping another exception. 
   * @see org.xml.sax.ContentHandler#endDocument 
   * 
   * @throws SAXException 
   */ 
  public void endDocument() throws SAXException 
  { 
    flushStartDoc(); 
    m_resultContentHandler.endDocument();
  } 
 
  /** 
   * Receive notification of the start of a Namespace mapping. 
   *