public class FileSuffixFilter
extends java.lang.Object
implements java.io.FileFilter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ignoreCase
Flag to signal that we want to ignore the case.
|
protected java.lang.String[] |
suffixes
A list of suffixes which files must have to be accepted.
|
| Constructor and Description |
|---|
FileSuffixFilter(java.lang.String suffix)
Construct a case sensitive FileSuffixFilter.
|
FileSuffixFilter(java.lang.String[] suffixes)
Construct a FileSuffixFilter.
|
FileSuffixFilter(java.lang.String[] suffixes,
boolean ignoreCase)
Construct a FileSuffixFilter.
|
FileSuffixFilter(java.lang.String suffix,
boolean ignoreCase)
Construct a FileSuffixFilter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Check if a file is acceptible.
|
protected final java.lang.String[] suffixes
protected final boolean ignoreCase
public FileSuffixFilter(java.lang.String[] suffixes,
boolean ignoreCase)
suffixes - A list of suffixes which files mut have to be accepted.ignoreCase - True if the filter should be case-insensitive.public FileSuffixFilter(java.lang.String[] suffixes)
suffixes - A list of suffixes which files mut have to be accepted.public FileSuffixFilter(java.lang.String suffix,
boolean ignoreCase)
suffix - The suffix which files must have to be accepted.ignoreCase - True if the filter should be case-insensitive.public FileSuffixFilter(java.lang.String suffix)
suffix - The suffix which files must have to be accepted.