net.damf.console.comperation.fileHandle
Class Search
java.lang.Object
net.damf.console.comperation.command.ConsoleCommand
net.damf.console.comperation.fileHandle.Search
- All Implemented Interfaces:
- Comperation
public class Search
- extends ConsoleCommand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
startFile
private java.io.File startFile
searchTerm
private char[][] searchTerm
allTermsNeeded
private boolean allTermsNeeded
searchForFile
private boolean searchForFile
searchRecursive
private boolean searchRecursive
Search
public Search()
requiresCommand
public final boolean requiresCommand()
- Specified by:
requiresCommand in interface Comperation- Overrides:
requiresCommand in class ConsoleCommand
argumentsNeeded
public final int argumentsNeeded()
- Specified by:
argumentsNeeded in interface Comperation- Overrides:
argumentsNeeded in class ConsoleCommand
make
public java.lang.String[] make(java.lang.String[] param)
- Specified by:
make in interface Comperation- Specified by:
make in class ConsoleCommand
handleFlags
protected char handleFlags()
giveFiles
public Comperation giveFiles(java.lang.String[] files)
- Specified by:
giveFiles in interface Comperation- Specified by:
giveFiles in class ConsoleCommand
perform
public boolean perform()
- Specified by:
perform in interface Comperation- Specified by:
perform in class ConsoleCommand
performForDir
private void performForDir(java.io.File dir)
performForString
private SearchInfo performForString(java.io.File file,
java.lang.String str)
newSearchInfo
private SearchInfo newSearchInfo(java.io.File file)
handleSearchInfo
private void handleSearchInfo(SearchInfo searchInfo)
performForFile
private SearchInfo performForFile(java.io.File file)
singleTerm
private boolean[] singleTerm(int chib,
int term,
boolean[] found)