Package org.apache.camel.component.file
Class AntPathMatcherFileFilter
- java.lang.Object
-
- org.apache.camel.component.file.AntPathMatcherFileFilter
-
- All Implemented Interfaces:
FileFilter
public class AntPathMatcherFileFilter extends Object implements FileFilter
File filter usingAntPathMatcher
. Exclude take precedence over includes. If a file match both exclude and include it will be regarded as excluded.
-
-
Constructor Summary
Constructors Constructor Description AntPathMatcherFileFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(File pathname)
boolean
acceptPathName(String path)
Accepts the given file by the path nameString[]
getExcludes()
String[]
getIncludes()
boolean
isCaseSensitive()
void
setCaseSensitive(boolean caseSensitive)
Sets Whether or not pattern matching should be case sensitivevoid
setExcludes(String excludes)
Sets excludes using a single string where each element can be separated with commavoid
setExcludes(String[] excludes)
void
setIncludes(String includes)
Sets includes using a single string where each element can be separated with commavoid
setIncludes(String[] includes)
-
-
-
Method Detail
-
accept
public boolean accept(File pathname)
- Specified by:
accept
in interfaceFileFilter
-
acceptPathName
public boolean acceptPathName(String path)
Accepts the given file by the path name- Parameters:
path
- the path- Returns:
- true if accepted, false if not
-
isCaseSensitive
public boolean isCaseSensitive()
- Returns:
- true if case sensitive pattern matching is on, false if case sensitive pattern matching is off.
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
Sets Whether or not pattern matching should be case sensitive Is by default turned on true.- Parameters:
caseSensitive
- false to disable case sensitive pattern matching
-
getExcludes
public String[] getExcludes()
-
setExcludes
public void setExcludes(String[] excludes)
-
getIncludes
public String[] getIncludes()
-
setIncludes
public void setIncludes(String[] includes)
-
setExcludes
public void setExcludes(String excludes)
Sets excludes using a single string where each element can be separated with comma
-
setIncludes
public void setIncludes(String includes)
Sets includes using a single string where each element can be separated with comma
-
-