Java program to find specific strings in a large text.
Inputs:
- Large text file
- List of words to find
Main Module:
- Reads the large text file and divide it into parts.
- Each part of the file "goes" into the
MatcherManger
which creates newMatcher
. EachMathcer
starts to search on a separate THREAD. - After all of the
Matcher
s finished, theAggregator
"sum up" all the words and their locations on the large file.
Output:
- Collection of found words, and for each word, its line offset and column offset
The project is built by the Gradle Build Tool.
Just run the command: gradle run
๐