Code example for ContentHandler

Methods: endDocument

0
  public void endDocument()  
       throws org.xml.sax.SAXException 
  { 
    // EXCEPTION: In this case we need to run the event BEFORE we yield. 
    if(clientContentHandler!=null)
      clientContentHandler.endDocument();
 
    eventcounter=0;     
    co_yield(false); 
  } 
  public void endElement(java.lang.String namespaceURI, java.lang.String localName,
      java.lang.String qName) 
       throws org.xml.sax.SAXException 
  { 
    if(--eventcounter<=0)
      { 
        co_yield(true); 
        eventcounter=frequency;
      } 
    if(clientContentHandler!=null)
      clientContentHandler.endElement(namespaceURI,localName,qName);