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()
retrieves the pattern in use
|
void |
setPattern(String pattern)
sets the String pattern for comparing filenames
|
void |
setPatternMatcher(PatternMatcher<int[]> patternMatcher)
sets the PatternMatcher implementation to use when comparing filenames
|
public String getPattern()
public void setPattern(String pattern)
pattern
- public 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
- Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.