public void importRtfDocumentIntoElement ( Element elem , InputStream readerIn , RtfDocument rtfDoc ) throws IOException { if ( readerIn == null || rtfDoc == null || elem == null ) return ; this . init ( TYPE_IMPORT_INTO_ELEMENT , rtfDoc , readerIn , this . document , elem ) ; this . setCurrentDestination ( RtfDestinationMgr . DESTINATION_NULL ) ; this . groupLevel = 0 ; try { this . tokenise ( ) ; } catch ( RuntimeException e ) { // TODO Auto-generated catch block e . printStackTrace ( ) ; } catch ( Exception e ) { // TODO Auto-generated catch block e . printStackTrace ( ) ; } }
Imports a complete RTF document into an Element i . e . Chapter section Table Cell etc .