Package adams.core.io.filesearch
Interface StreamableFileSearchHandler
-
- All Superinterfaces:
Stoppable
,StoppableWithFeedback
- All Known Implementing Classes:
TextFileSearchHandler
public interface StreamableFileSearchHandler extends StoppableWithFeedback
Interface for file search handlers that can operate on character streams obtained from readers.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
searchStream(Reader reader, String searchText, boolean caseSensitive, ExceptionHandler handler)
Searches the specified character stream.-
Methods inherited from interface adams.core.Stoppable
stopExecution
-
Methods inherited from interface adams.core.StoppableWithFeedback
isStopped
-
-
-
-
Method Detail
-
searchStream
boolean searchStream(Reader reader, String searchText, boolean caseSensitive, ExceptionHandler handler)
Searches the specified character stream.- Parameters:
reader
- the reader to searchsearchText
- the search texthandler
- for handling exceptions, can be null- Returns:
- true if the search text was found
-
-