|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.teamdev.filewatch.FileMaskFilter
public class FileMaskFilter
This filter provides the functionality for filtering file events by a file mask.
| Constructor Summary | |
|---|---|
FileMaskFilter(java.lang.String fileMasks)
Creates a new filter by the specified file mask or file masks divided by ; separator. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File pathname)
Verifies if a given file matches this file mask. |
boolean |
accept(FileEvent e)
Tests if the specified event should be processed further. |
java.lang.String |
getFileMask()
Returns file mask. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileMaskFilter(java.lang.String fileMasks)
; separator. Exact filename or wildcards can be used in the mask.*.java;*cpp;*.txt - filter for java, cpp and text files;
fileMasks - is the file mask filter.| Method Detail |
|---|
public java.lang.String getFileMask()
public boolean accept(java.io.File pathname)
accept in interface java.io.FileFilterpathname - file to check
public boolean accept(FileEvent e)
accept in interface FileEventFiltere - a new event discovered by a FileWatcher
true if and only if the filter accepts the event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||