getWordSet
Reads lines from a Reader and adds every non-blank line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Return
the given CharArraySet with the reader's words
Parameters
Reader containing the wordlist
the CharArraySet to fill with the readers words
Reads lines from a Reader and adds every line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Return
An unmodifiable CharArraySet with the reader's words
Parameters
Reader containing the wordlist
Reads lines from an InputStream with UTF-8 charset and adds every line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Return
An unmodifiable CharArraySet with the reader's words
Parameters
InputStream containing the wordlist
Reads lines from an InputStream with the given charset and adds every line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Return
An unmodifiable CharArraySet with the reader's words
Parameters
InputStream containing the wordlist
Charset of the wordlist
Reads lines from a Reader and adds every non-blank non-comment line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Return
the given CharArraySet with the reader's words
Parameters
Reader containing the wordlist
The string representing a comment.
the CharArraySet to fill with the readers words
Reads lines from a Reader and adds every non-comment line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Return
An unmodifiable CharArraySet with the reader's words
Parameters
Reader containing the wordlist
The string representing a comment.
Reads lines from an InputStream with UTF-8 charset and adds every non-comment line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Return
An unmodifiable CharArraySet with the reader's words
Parameters
InputStream in UTF-8 encoding containing the wordlist
The string representing a comment.
Reads lines from an InputStream with the given charset and adds every non-comment line as an entry to a CharArraySet (omitting leading and trailing whitespace). Every line of the Reader should contain only one word. The words need to be in lowercase if you make use of an Analyzer which uses LowerCaseFilter (like StandardAnalyzer).
Return
An unmodifiable CharArraySet with the reader's words
Parameters
InputStream containing the wordlist
Charset of the wordlist
The string representing a comment.