edu.ucla.util.code
Class ParanoidFileFinder
Object
ParanoidFileFinder
public class ParanoidFileFinder
- extends Object
- Since:
- 20050324
- Author:
- keith cascio
STR_REGEX_NONWORD_NONPERIOD_NONSEP
public static final String STR_REGEX_NONWORD_NONPERIOD_NONSEP
STR_REGEX_AFTER_LAST_FILE_SEPARATOR_NO_PERIODS
public static final String STR_REGEX_AFTER_LAST_FILE_SEPARATOR_NO_PERIODS
STR_REGEX_QUOTE
public static final String STR_REGEX_QUOTE
- See Also:
- Constant Field Values
STR_REGEX_ENDQUOTE
public static final String STR_REGEX_ENDQUOTE
- See Also:
- Constant Field Values
STR_REGEX_NONWORD_NONSEP
public static final String STR_REGEX_NONWORD_NONSEP
STR_REGEX_ANY_NONSEPS
public static final String STR_REGEX_ANY_NONSEPS
STR_REGEX_PRE_EXECUTABLE
public static final String STR_REGEX_PRE_EXECUTABLE
STR_REGEX_POST_EXECUTABLE
public static final String STR_REGEX_POST_EXECUTABLE
STR_REGEX_PRE_SEARCH_SECURITY
public static final String STR_REGEX_PRE_SEARCH_SECURITY
STR_REGEX_POST_SEARCH_SECURITY
public static final String STR_REGEX_POST_SEARCH_SECURITY
STR_REGEX_JDK
public static final String STR_REGEX_JDK
- See Also:
- Constant Field Values
STR_REGEX_PRE_BEST
public static final String STR_REGEX_PRE_BEST
STR_REGEX_POST_BEST
public static final String STR_REGEX_POST_BEST
- See Also:
- Constant Field Values
LONG_TOO_OLD
public static final long LONG_TOO_OLD
- See Also:
- Constant Field Values
ParanoidFileFinder
public ParanoidFileFinder()
regexOrEnd
public static String regexOrEnd(String regex)
- Since:
- 20050324
setFileNameQuoted
public void setFileNameQuoted(String name)
getFileName
public String getFileName()
setRegexFileName
public void setRegexFileName(String regex)
setRegexFilePath
public void setRegexFilePath(String regex)
setRegexSecurityName
public void setRegexSecurityName(String regex)
setRegexSecurityPath
public void setRegexSecurityPath(String regex)
setDepth
public void setDepth(int depth)
chooseBestJavaExecutable
public File chooseBestJavaExecutable(String name)
throws IOException
- Throws:
IOException
- Since:
- 20050324
chooseBestJavaExecutable
public File chooseBestJavaExecutable(String name,
File hint)
throws IOException
- Throws:
IOException
- Since:
- 20050330
chooseBestExecutable
public File chooseBestExecutable(List found)
- Since:
- 20050324
getBestMatch
public static File getBestMatch(Collection files,
Pattern pattern)
- Since:
- 20050323
getShortest
public static File getShortest(List matches)
- Since:
- 20050329
searchJavaExecutable
public ArrayList searchJavaExecutable(String name)
throws IOException
- Throws:
IOException
- Since:
- 20050324
searchJavaExecutable
public ArrayList searchJavaExecutable(String name,
File directory)
throws IOException
- Throws:
IOException
- Since:
- 20050323
paranoidFindAll
public Collection paranoidFindAll(File directory,
Collection container)
throws IOException
- Throws:
IOException
- Since:
- 20050323
pole
public File pole()
- Since:
- 20091219
ignore
public boolean ignore(File directory)
- Since:
- 032305
getFileSeparatorUnicode
public static String getFileSeparatorUnicode()
- Since:
- 032305
getNewestFirstComparator
public static Comparator getNewestFirstComparator()
- Since:
- 032405
printTimes
public static void printTimes(Collection files,
PrintStream out)
- Since:
- 032905
Copyright 2010 UCLA Automated Reasoning Group