*/
@Override
public void finish(TextProcessFinishEvent evt) {
int i = 0;
TextMetaData data = evt.getMetaData();
for(String s: data.getWordsByFrequency()) {
System.out.print(String.format("\n%d. %s (%d)", ++i,
s, data.getFrequencyOfWord(s)));
}
System.out.println(String.format("\nSum(Words): %d, Sum(Chars): %d",
data.getNumberOfWords(), data.getNumberOfCharacters()));
}