void clear(){
  buffer.setLength(0);
  startOffset=endOffset=type=subwordCount=0;
}

void clear ( ) { buffer . setLength ( 0 ) ; startOffset = endOffset = type = subwordCount = 0 ; }
clears the concatenation and resets its state
