public abstract class SearchListener extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SearchListener()
Constructor for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
directoryEntered(String path)
Called when a directory was visited.
|
void |
fileContentMatchingError(String fileName,
Throwable throwable)
Called when an exception occurs during file content checking.
|
void |
fileContentMatchingProgress(String fileName,
long fileOffset)
Called when matching in file progresses.
|
void |
fileContentMatchingStarted(String fileName)
Called when matching in file content is to start.
|
void |
fileSkipped(FileObject fileObject,
SearchFilterDefinition filter,
String message)
Called when a file is skipped - filtered out by a filter.
|
void |
fileSkipped(URI uri,
SearchFilterDefinition filter,
String message)
Called when a file is skipped - filtered out by a filter.
|
void |
generalError(Throwable t)
Called when a general error occurs.
|
public void fileSkipped(@NonNull FileObject fileObject, @NullAllowed SearchFilterDefinition filter, @NullAllowed String message)
fileObject - the skipped file object.filter - filter that filtered out the file (can be null).message - message describing reasons for skipping (can be null).public void fileSkipped(@NonNull URI uri, @NullAllowed SearchFilterDefinition filter, @NullAllowed String message)
uri - the skipped URI.filter - filter that filtered out the file (can be null).message - message describing reasons for skipping (can be null).public void directoryEntered(@NonNull String path)
path - Path of the visited directory.public void fileContentMatchingStarted(@NonNull String fileName)
fileName - Name of file.public void fileContentMatchingProgress(@NonNull String fileName, long fileOffset)
fileName - Name of file whose content is being read.fileOffset - Offset in file that has been processed.public void fileContentMatchingError(@NonNull String fileName, @NonNull Throwable throwable)
fileName - File that caused the error.throwable - Error description.