com.groupdocs.search

Class HomophoneDictionary

    • Method Detail

      • getCount

        public final int getCount()

        Gets the number of words contained in the HomophoneDictionary.

        Value: The number of words.
      • addRange

        public final void addRange(Iterable<String[]> homophones)

        Adds the specified collection of homophones to this instance of the HomophoneDictionary.

        Parameters:
        homophones - The collection of homophones to add to the dictionary.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Thrown when homophones is null.
        com.aspose.ms.System.ArgumentException - Thrown when number of homophones in a group is less than 2.
      • clear

        public final void clear()

        Removes all words from a HomophoneDictionary object.

      • export

        @Deprecated
        public final void export(String fileName)
        Deprecated. 

        Exports the homophone dictionary to a file with the specified name.

        Parameters:
        fileName - The name of the text file to export to.
      • exportDictionary

        public final void exportDictionary(String fileName)

        Exports the homophone dictionary to a file with the specified name.

        Parameters:
        fileName - The name of the text file to export to.
      • import_

        @Deprecated
        public final void import_(String fileName)
        Deprecated. 

        Imports a homophone dictionary from the specified text file.

        Parameters:
        fileName - The file to import from.
      • importDictionary

        public final void importDictionary(String fileName)

        Imports a homophone dictionary from the specified text file.

        Parameters:
        fileName - The file to import from.
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<String> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface Iterable<String>
        Returns:
        An enumerator that can be used to iterate through the collection.
      • iterator_Rename_Namesake

        public final com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()

        Returns an enumerator that iterates through a collection.

        Returns:
        An IEnumerator object that can be used to iterate through the collection.