private int dispatchKeyword ( RtfCtrlWordData ctrlWordData , int groupLevel ) { int result = RtfParser . errOK ; if ( ctrlWordData != null ) { RtfCtrlWordHandler ctrlWord = ctrlWordMap . getCtrlWordHandler ( ctrlWordData . ctrlWord ) ; if ( ctrlWord != null ) { ctrlWord . handleControlword ( ctrlWordData ) ; if ( debug && debugFound ) { System . out . println ( "Keyword found:" + " New:" + ctrlWordData . ctrlWord + " Param:" + ctrlWordData . param + " bParam=" + ctrlWordData . hasParam ) ; } } else { result = RtfParser . errCtrlWordNotFound ; //result = RtfParser2.errAssertion; if ( debug && debugNotFound ) { System . out . println ( "Keyword unknown:" + " New:" + ctrlWordData . ctrlWord + " Param:" + ctrlWordData . param + " bParam=" + ctrlWordData . hasParam ) ; } } } return result ; }
Dispatch the token to the correct control word handling object .