public abstract class SearchListener extends Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
SearchListener() |
Constructor for subclasses.
|
| Modifier and Type | Method | 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(URI uri,
SearchFilterDefinition filter,
String message) |
Called when a file is skipped - filtered out by a filter.
|
void |
fileSkipped(org.openide.filesystems.FileObject fileObject,
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
org.openide.filesystems.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.public void generalError(@NonNull
Throwable t)
t - Error description.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.