|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.codehaus.spice.salt.io.PathMatcher
Utility class for scanning a filesystem and matching a particular set of include and exclude patterns ala ant.
Constructor Summary | |
PathMatcher(String[] includes,
String[] excludes)
Construct a matcher from ant style includes/excludes. |
|
PathMatcher(String[] includes,
String[] excludes,
char separator)
Construct a matcher from ant style includes/excludes. |
Method Summary | |
boolean |
match(String vPath)
Test if a virtual path matches any of the ant style patterns specified in this objects constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PathMatcher(String[] includes, String[] excludes)
includes
- the set of includesexcludes
- the set of excludespublic PathMatcher(String[] includes, String[] excludes, char separator)
includes
- the set of includesexcludes
- the set of excludesseparator
- the separator used to mark end of elementsMethod Detail |
public boolean match(String vPath)
vPath
- the virtual path string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |