com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class ContainsSearchHandler

  • All Implemented Interfaces:
    ISearchHandler


    public final class ContainsSearchHandler
    extends Object
    implements ISearchHandler

    Represents search handler for processing search event only once.


    This search handler is used to search for at least one occurrence of the search word.

    • Constructor Detail

      • ContainsSearchHandler

        public ContainsSearchHandler()

        Initializes a new instance of the ContainsSearchHandler class.

    • Method Detail

      • isFound

        public boolean isFound()

        Gets a value indicating whether the search word is found.

        Returns:
        A boolean true if the search word is found; otherwise, false.
      • complete

        public void complete()

        The search is completed.

        Specified by:
        complete in interface ISearchHandler
      • processSearchResult

        public boolean processSearchResult(SearchResult searchResult)

        The next occurrence of the search word is found.

        Specified by:
        processSearchResult in interface ISearchHandler
        Parameters:
        searchResult - The search result.
        Returns:
        A boolean true to continue the search; otherwise false.