com.groupdocs.search.dictionaries

Class SpellingCorrector

    • Constructor Detail

      • SpellingCorrector

        protected SpellingCorrector(EventHub events,
                         String filePath,
                         boolean saveOnChange)

        Initializes a new instance of the SpellingCorrector class.

        Parameters:
        events - The event hub.
        filePath - The file name.
        saveOnChange - The save on change flag.
    • Method Detail

      • getCount

        public abstract int getCount()

        Gets the number of words contained in this SpellingCorrector.

        Returns:
        The number of words contained in this SpellingCorrector.
      • getWords

        public abstract String[] getWords()

        Gets the collection of words that is currently contained in this SpellingCorrector.

        Returns:
        The collection of words.
      • addRange

        public abstract void addRange(Iterable<String> words)

        Adds the specified collection of words to this instance of the SpellingCorrector.

        Parameters:
        words - The collection of words to add to the dictionary.
      • addRange

        public abstract void addRange(String[] words)

        Adds the specified collection of words to this instance of the SpellingCorrector.

        Parameters:
        words - The collection of words to add to the dictionary.
      • clear

        public abstract void clear()

        Removes all words from a SpellingCorrector object.