public boolean handleKeyword(String keyword,int parameter){
  boolean ignoreGroupIfUnknownKeywordSave=ignoreGroupIfUnknownKeyword;
  if (skippingCharacters > 0) {
    skippingCharacters--;
    return true;
  }
  ignoreGroupIfUnknownKeyword=false;
  if (keyword.equals("uc")) {
    parserState.put("UnicodeSkip",Integer.valueOf(parameter));
    return true;
  }
  if (keyword.equals("u")) {
    if (parameter < 0)     parameter=parameter + 65536;
    handleText((char)parameter);
    Number skip=(Number)(parserState.get("UnicodeSkip"));
    if (skip != null) {
      skippingCharacters=skip.intValue();
    }
 else {
      skippingCharacters=1;
    }
    return true;
  }
  if (keyword.equals("rtf")) {
    rtfversion=parameter;
    setRTFDestination(new DocumentDestination());
    return true;
  }
  if (keyword.startsWith("NeXT") || keyword.equals("private"))   ignoreGroupIfUnknownKeywordSave=true;
  if (rtfDestination != null) {
    if (rtfDestination.handleKeyword(keyword,parameter))     return true;
  }
  if (ignoreGroupIfUnknownKeywordSave) {
    setRTFDestination(new DiscardingDestination());
  }
  return false;
}

public boolean handleKeyword ( String keyword , int parameter ) { boolean ignoreGroupIfUnknownKeywordSave = ignoreGroupIfUnknownKeyword ; if ( skippingCharacters > 0 ) { skippingCharacters -- ; return true ; } ignoreGroupIfUnknownKeyword = false ; if ( keyword . equals ( "uc" ) ) { parserState . put ( "UnicodeSkip" , Integer . valueOf ( parameter ) ) ; return true ; } if ( keyword . equals ( "u" ) ) { if ( parameter < 0 ) parameter = parameter + 65536 ; handleText ( ( char ) parameter ) ; Number skip = ( Number ) ( parserState . get ( "UnicodeSkip" ) ) ; if ( skip != null ) { skippingCharacters = skip . intValue ( ) ; } else { skippingCharacters = 1 ; } return true ; } if ( keyword . equals ( "rtf" ) ) { rtfversion = parameter ; setRTFDestination ( new DocumentDestination ( ) ) ; return true ; } if ( keyword . startsWith ( "NeXT" ) || keyword . equals ( "private" ) ) ignoreGroupIfUnknownKeywordSave = true ; if ( rtfDestination != null ) { if ( rtfDestination . handleKeyword ( keyword , parameter ) ) return true ; } if ( ignoreGroupIfUnknownKeywordSave ) { setRTFDestination ( new DiscardingDestination ( ) ) ; } return false ; }
handles an rtf keyword and its integer parameter . this is called by the superclass ( rtfparser ) when a keyword is found in the input stream .
