public void startDocument ( ) throws SAXException { if ( DEBUG ) System . out . println ( "TransformerHandlerImpl#startDocument" ) ; m_insideParse = true ; // Thread listener = new Thread(m_transformer); if ( m_contentHandler != null ) { //m_transformer.setTransformThread(listener); if ( m_incremental ) { m_transformer . setSourceTreeDocForThread ( m_dtm . getDocument ( ) ) ; int cpriority = Thread . currentThread ( ) . getPriority ( ) ; // runTransformThread is equivalent with the 2.0.1 code, // except that the Thread may come from a pool. m_transformer . runTransformThread ( cpriority ) ; } // This is now done _last_, because IncrementalSAXSource_Filter // will immediately go into a "wait until events are requested" // pause. I believe that will close our timing window. // %REVIEW% m_contentHandler . startDocument ( ) ; } //listener.setDaemon(false); //listener.start(); }
Filter a start document event .