Package com.mku.fs.drive.utils
Class FileSearcher
java.lang.Object
com.mku.fs.drive.utils.FileSearcher
Class searches for files in an VirtualDrive by filename.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEvent status types.static classSearch options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if a search is running.booleanCheck if last search was stopped by user.search(IVirtualFile dir, String terms, FileSearcher.SearchOptions options) Search files in directory and its subdirectories recursively for matching terms.voidstop()Stop current operation
-
Constructor Details
-
FileSearcher
public FileSearcher()
-
-
Method Details
-
stop
public void stop()Stop current operation -
isRunning
public boolean isRunning()Check if a search is running.- Returns:
- True if running
-
isStopped
public boolean isStopped()Check if last search was stopped by user.- Returns:
- True if user stopped
-
search
Search files in directory and its subdirectories recursively for matching terms.- Parameters:
dir- The directory to start the search.terms- The terms to search for.options- The options- Returns:
- An array with all the results found.
-