public abstract class AbstractSimplePatternFileListFilter<F> extends AbstractDirectoryAwareFileListFilter<F>
AntPathMatcher,
AbstractRegexPatternFileListFilter| Constructor and Description |
|---|
AbstractSimplePatternFileListFilter(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(F file)
Accepts the given file if its name matches the pattern.
|
protected abstract java.lang.String |
getFilename(F file)
Subclasses must implement this method to extract the file's name.
|
alwaysAccept, isDirectory, setAlwaysAcceptDirectoriesfilterFilespublic AbstractSimplePatternFileListFilter(java.lang.String path)
public final boolean accept(F file)
accept in class AbstractFileListFilter<F>file - The file.protected abstract java.lang.String getFilename(F file)
file - The file.