Code example for ContentHandler

Methods: endDocument

0
     
    TransformerImpl transf = context.getTransformer();
     
    startRedirection(transf, formatter);  // for tracing only
     
    transf.executeChildTemplates(elem,
                                 context.getContextNode(),
                                 context.getMode(), formatter);
                                  
    endRedirection(transf); // for tracing only
     
    if(!inTable)
    { 
      OutputStream ostream = (OutputStream)m_outputStreams.get(fileName);
      if(null != ostream)
      { 
        try 
        { 
          formatter.endDocument();
        } 
        catch(org.xml.sax.SAXException se)
        { 
          throw new TransformerException(se);
        }