private void removeTokenPostpunctuation(){
  if (token != null) {
    String tokenWord=token.getWord();
    int tokenLength=tokenWord.length();
    int position=tokenLength - 1;
    while (position > 0 && postpunctuationSymbols.indexOf((int)tokenWord.charAt(position)) != -1) {
      position--;
    }
    if (tokenLength - 1 != position) {
      token.setPostpunctuation(tokenWord.substring(position + 1));
      token.setWord(tokenWord.substring(0,position + 1));
    }
 else {
      token.setPostpunctuation("");
    }
  }
}

private void removeTokenPostpunctuation ( ) { if ( token != null ) { String tokenWord = token . getWord ( ) ; int tokenLength = tokenWord . length ( ) ; int position = tokenLength - 1 ; while ( position > 0 && postpunctuationSymbols . indexOf ( ( int ) tokenWord . charAt ( position ) ) != - 1 ) { position -- ; } if ( tokenLength - 1 != position ) { token . setPostpunctuation ( tokenWord . substring ( position + 1 ) ) ; token . setWord ( tokenWord . substring ( 0 , position + 1 ) ) ; } else { token . setPostpunctuation ( "" ) ; } } }
removes the postpunctuation characters from the current token . copies those postpunctuation characters to the class variable ' postpunctuation ' .
