public void importRtfFragment ( InputStream readerIn , RtfDocument rtfDoc , RtfImportMappings importMappings ) throws IOException { //public void importRtfFragment2(Reader readerIn, RtfDocument rtfDoc, RtfImportMappings importMappings) throws IOException { if ( readerIn == null || rtfDoc == null || importMappings == null ) return ; this . init ( TYPE_IMPORT_FRAGMENT , rtfDoc , readerIn , null , null ) ; this . handleImportMappings ( importMappings ) ; this . setCurrentDestination ( RtfDestinationMgr . DESTINATION_DOCUMENT ) ; this . groupLevel = 1 ; setParserState ( RtfParser . PARSER_IN_DOCUMENT ) ; this . tokenise ( ) ; }
Imports an RTF fragment .