public class ClassPathFinder extends Object
PatternMatcher
by default it
uses WildcardHelper
Constructor and Description |
---|
ClassPathFinder() |
Modifier and Type | Method and Description |
---|---|
Vector<String> |
findMatches()
Builds a
Vector containing Strings which each name a file
who's name matches the pattern set by setPattern(String). |
String |
getPattern() |
void |
setPattern(String pattern) |
void |
setPatternMatcher(PatternMatcher<int[]> patternMatcher) |
public String getPattern()
public void setPattern(String pattern)
pattern
- the String pattern for comparing filenamespublic Vector<String> findMatches()
Vector
containing Strings which each name a file
who's name matches the pattern set by setPattern(String). The classpath is
searched recursively, so use with caution.public void setPatternMatcher(PatternMatcher<int[]> patternMatcher)
patternMatcher
- the PatternMatcher implementation to use when comparing filenamesCopyright © 2000–2020 Apache Software Foundation. All rights reserved.