Package org.apache.camel.component.file
Class AntPathMatcherGenericFileFilter<T>
- java.lang.Object
-
- org.apache.camel.component.file.AntPathMatcherGenericFileFilter<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
GenericFileFilter<T>
public class AntPathMatcherGenericFileFilter<T> extends Object implements GenericFileFilter<T>
File filter using AntPathMatcher. Exclude take precedence over includes. If a file match both exclude and include it will be regarded as excluded.
-
-
Constructor Summary
Constructors Constructor Description AntPathMatcherGenericFileFilter()
AntPathMatcherGenericFileFilter(String... includes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(GenericFile<T> file)
Tests whether or not the specified generic file should be includedString[]
getExcludes()
String[]
getIncludes()
boolean
isCaseSensitive()
void
setCaseSensitive(boolean caseSensitive)
Sets case sensitive flag onAntPathMatcherFileFilter
void
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)
-
-
-
Constructor Detail
-
AntPathMatcherGenericFileFilter
public AntPathMatcherGenericFileFilter()
-
AntPathMatcherGenericFileFilter
public AntPathMatcherGenericFileFilter(String... includes)
-
-
Method Detail
-
accept
public boolean accept(GenericFile<T> file)
Description copied from interface:GenericFileFilter
Tests whether or not the specified generic file should be included- Specified by:
accept
in interfaceGenericFileFilter<T>
- Parameters:
file
- the generic file to be tested- Returns:
true
if and only iffile
should be included
-
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
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
Sets case sensitive flag onAntPathMatcherFileFilter
Is by default turned on true.
-
isCaseSensitive
public boolean isCaseSensitive()
-
-