|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--mark.core.files.ContainsFilter
A ContainsFilter is a java.io.FileFilter that either: (1) accepts files that contain a certain string or (2) accepts files that do not contain a certain string.
| Constructor Summary | |
ContainsFilter(java.lang.String s,
boolean accept)
Initializes the filter. |
|
| Method Summary | |
boolean |
accept(java.io.File f)
Overrides the method in java.io.FileFilter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContainsFilter(java.lang.String s,
boolean accept)
s - the string to compare against.accept - whether to accept files with names containing
s. If false, then accepts all files with names that do not
contain s.| Method Detail |
public boolean accept(java.io.File f)
accept in interface java.io.FileFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||