edu.ucla.util.code
Class ParanoidFileFinder

Object
  extended by ParanoidFileFinder

public class ParanoidFileFinder
extends Object

Since:
20050324
Author:
keith cascio

Field Summary
static long LONG_TOO_OLD
           
static String STR_REGEX_AFTER_LAST_FILE_SEPARATOR_NO_PERIODS
           
static String STR_REGEX_ANY_NONSEPS
           
static String STR_REGEX_ENDQUOTE
           
static String STR_REGEX_JDK
           
static String STR_REGEX_NONWORD_NONPERIOD_NONSEP
           
static String STR_REGEX_NONWORD_NONSEP
           
static String STR_REGEX_POST_BEST
           
static String STR_REGEX_POST_EXECUTABLE
           
static String STR_REGEX_POST_SEARCH_SECURITY
           
static String STR_REGEX_PRE_BEST
           
static String STR_REGEX_PRE_EXECUTABLE
           
static String STR_REGEX_PRE_SEARCH_SECURITY
           
static String STR_REGEX_QUOTE
           
 
Constructor Summary
ParanoidFileFinder()
           
 
Method Summary
 File chooseBestExecutable(List found)
           
 File chooseBestJavaExecutable(String name)
           
 File chooseBestJavaExecutable(String name, File hint)
           
static File getBestMatch(Collection files, Pattern pattern)
           
 String getFileName()
           
static String getFileSeparatorUnicode()
           
static Comparator getNewestFirstComparator()
           
static File getShortest(List matches)
           
 boolean ignore(File directory)
           
 Collection paranoidFindAll(File directory, Collection container)
           
 File pole()
           
static void printTimes(Collection files, PrintStream out)
           
static String regexOrEnd(String regex)
           
 ArrayList searchJavaExecutable(String name)
           
 ArrayList searchJavaExecutable(String name, File directory)
           
 void setDepth(int depth)
           
 void setFileNameQuoted(String name)
           
 void setRegexFileName(String regex)
           
 void setRegexFilePath(String regex)
           
 void setRegexSecurityName(String regex)
           
 void setRegexSecurityPath(String regex)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ParanoidFileFinder

public ParanoidFileFinder()
Method Detail

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