public void setContentHandler ( ContentHandler handler ) { if ( handler == null ) { throw new NullPointerException ( XSLMessages . createMessage ( XSLTErrorResources . ER_NULL_CONTENT_HANDLER , null ) ) ; //"Null content handler"); } else { m_outputContentHandler = handler ; if ( null == m_serializationHandler ) { ToXMLSAXHandler h = new ToXMLSAXHandler ( ) ; h . setContentHandler ( handler ) ; h . setTransformer ( this ) ; m_serializationHandler = h ; } else m_serializationHandler . setContentHandler ( handler ) ; } }
Set the content event handler .