Package de.hdm_stuttgart.mi.sd1.textstat
Class TextFileHandler
java.lang.Object
de.hdm_stuttgart.mi.sd1.textstat.TextFileHandler
Count words and their respective frequencies of appearance.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Print a list of all words sorted by their respective frequencies.
-
Field Details
-
filename
The input file name to read from.
-
-
Constructor Details
-
TextFileHandler
- Parameters:
filename
- The filename input to read input, seefilename
- Throws:
IOException
- Input file cannot be readFileNotFoundException
- File does not exist
-
-
Method Details
-
printFrequencies
Print a list of all words sorted by their respective frequencies.
-