public abstract class SpellingCorrector extends DictionaryBase
Learn more
ErrorOccurred
Modifier | Constructor and Description |
---|---|
protected |
SpellingCorrector(String filePath,
boolean saveOnChange)
Initializes a new instance of the
SpellingCorrector class. |
Modifier and Type | Method and Description |
---|---|
abstract void |
addRange(Iterable<String> words)
Adds the specified collection of words to this instance of the
SpellingCorrector . |
abstract void |
addRange(String[] words)
Adds the specified collection of words to this instance of the
SpellingCorrector . |
abstract void |
clear()
Removes all words from a
SpellingCorrector object. |
abstract int |
getCount()
Gets the number of words contained in this
SpellingCorrector . |
abstract String[] |
getWords()
Gets the collection of words that is currently contained in this
SpellingCorrector . |
copyFrom, export, exportDictionary, getFilePath, getFilePathStatic, getStandardFileName, getStandardFileNameStatic, import_, importDictionary, load, loadDefault, loadInternalStatic, merge, mergeInternalStatic, notifyChanged, save, setFilePath
protected SpellingCorrector(String filePath, boolean saveOnChange)
Initializes a new instance of the SpellingCorrector
class.
filePath
- The file name.saveOnChange
- The save on change flag.public abstract int getCount()
Gets the number of words contained in this SpellingCorrector
.
SpellingCorrector
.public abstract String[] getWords()
Gets the collection of words that is currently contained in this SpellingCorrector
.
public abstract void addRange(Iterable<String> words)
Adds the specified collection of words to this instance of the SpellingCorrector
.
words
- The collection of words to add to the dictionary.public abstract void addRange(String[] words)
Adds the specified collection of words to this instance of the SpellingCorrector
.
words
- The collection of words to add to the dictionary.public abstract void clear()
Removes all words from a SpellingCorrector
object.