public abstract class SearchListener
extends java.lang.Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
SearchListener() |
Constructor for subclasses.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
directoryEntered(java.lang.String path) |
Called when a directory was visited.
|
void |
fileContentMatchingError(java.lang.String fileName,
java.lang.Throwable throwable) |
Called when an exception occurs during file content checking.
|
void |
fileContentMatchingProgress(java.lang.String fileName,
long fileOffset) |
Called when matching in file progresses.
|
void |
fileContentMatchingStarted(java.lang.String fileName) |
Called when matching in file content is to start.
|
void |
fileSkipped(java.net.URI uri,
SearchFilterDefinition filter,
java.lang.String message) |
Called when a file is skipped - filtered out by a filter.
|
void |
fileSkipped(org.openide.filesystems.FileObject fileObject,
SearchFilterDefinition filter,
java.lang.String message) |
Called when a file is skipped - filtered out by a filter.
|
void |
generalError(java.lang.Throwable t) |
Called when a general error occurs.
|
public void fileSkipped(@NonNull
org.openide.filesystems.FileObject fileObject,
@NullAllowed
SearchFilterDefinition filter,
@NullAllowed
java.lang.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
java.net.URI uri,
@NullAllowed
SearchFilterDefinition filter,
@NullAllowed
java.lang.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
java.lang.String path)
path - Path of the visited directory.public void fileContentMatchingStarted(@NonNull
java.lang.String fileName)
fileName - Name of file.public void fileContentMatchingProgress(@NonNull
java.lang.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
java.lang.String fileName,
@NonNull
java.lang.Throwable throwable)
fileName - File that caused the error.throwable - Error description.public void generalError(@NonNull
java.lang.Throwable t)
t - Error description.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.