Interface FileSearchHandler

    • Method Detail

      • handles

        boolean handles​(String file)
        Checks whether the handler can manage this file.
        Parameters:
        file - the file to check
        Returns:
        true if handler can search this type of file
      • searchFile

        boolean searchFile​(String file,
                           String searchText,
                           boolean caseSensitive,
                           ExceptionHandler handler)
        Searches the specified file.
        Parameters:
        file - the file to search
        searchText - the search text
        handler - for handling exceptions, can be null
        Returns:
        true if the search text was found