public class AntPathMatcherFileFilter extends Object implements FileFilter
AntPathMatcher
.
Exclude take precedence over includes. If a file match both exclude and include it will be regarded as excluded.Constructor and Description |
---|
AntPathMatcherFileFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File pathname) |
boolean |
acceptPathName(String path)
Accepts the given file by the path name
|
String[] |
getExcludes() |
String[] |
getIncludes() |
boolean |
isCaseSensitive() |
void |
setCaseSensitive(boolean caseSensitive)
Sets Whether or not pattern matching should be case sensitive
Is by default turned on true.
|
void |
setExcludes(String excludes)
Sets excludes using a single string where each element can be separated with comma
|
void |
setExcludes(String[] excludes) |
void |
setIncludes(String includes)
Sets includes using a single string where each element can be separated with comma
|
void |
setIncludes(String[] includes) |
public AntPathMatcherFileFilter()
public boolean accept(File pathname)
accept
in interface FileFilter
public boolean acceptPathName(String path)
path
- the pathpublic boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
caseSensitive
- false to disable case sensitive pattern matchingpublic String[] getExcludes()
public void setExcludes(String[] excludes)
public String[] getIncludes()
public void setIncludes(String[] includes)
public void setExcludes(String excludes)
public void setIncludes(String includes)
Apache Camel