|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.file.filters.AbstractFileListFilter<F> org.springframework.integration.file.filters.AbstractSimplePatternFileListFilter<F>
public abstract class AbstractSimplePatternFileListFilter<F>
Base class for filters that support ant style path expressions, which are less powerful but more readable than regular expressions. This filter only filters on the name of the file, the rest of the path is ignored.
AntPathMatcher
,
AbstractRegexPatternFileListFilter
Constructor Summary | |
---|---|
AbstractSimplePatternFileListFilter(java.lang.String path)
|
Method Summary | |
---|---|
boolean |
accept(F file)
Accept the given file its name matches the pattern, |
protected abstract java.lang.String |
getFilename(F file)
Subclasses must implement this method to extract the file's name. |
Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter |
---|
filterFiles |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSimplePatternFileListFilter(java.lang.String path)
Method Detail |
---|
public final boolean accept(F file)
accept
in class AbstractFileListFilter<F>
protected abstract java.lang.String getFilename(F file)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |