|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.file.base.PatternFileFilter
public class PatternFileFilter
This is the implementation of a FileFilter that filters using a
pattern.
PatternCompiler| Field Summary | |
|---|---|
private FileType |
fileType
The type of the acceptable files or null
if any type is acceptable. |
private Pattern |
pattern
the pattern that must match in order to accept a file
by its name. |
| Constructor Summary | |
|---|---|
PatternFileFilter(Pattern filenamePattern)
The constructor. |
|
PatternFileFilter(Pattern filenamePattern,
FileType type)
The constructor. |
|
PatternFileFilter(String filenamePattern,
FileType type)
The constructor. |
|
| Method Summary | |
|---|---|
boolean |
accept(File file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Pattern pattern
accept a file
by its name.
private final FileType fileType
acceptable files or null
if any type is acceptable.
| Constructor Detail |
|---|
public PatternFileFilter(Pattern filenamePattern)
filenamePattern - is the pattern that must match in order to
accept a file by its name.
public PatternFileFilter(String filenamePattern,
FileType type)
filenamePattern - is the glob-pattern that
must match in order to accept a file by its
name.type - the type of the acceptable files or
null if any type is acceptable.
public PatternFileFilter(Pattern filenamePattern,
FileType type)
filenamePattern - is the pattern that must match in order to
accept a file by its name.type - the type of the acceptable files or
null if any type is acceptable.| Method Detail |
|---|
public boolean accept(File file)
accept in interface FileFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||