@ Override public boolean accept ( File file ) { WildcardFileFilter filter = new WildcardFileFilter ( watchFilter ) ; return filter . accept ( file ) ; }
If the watcher has a filter set creates a wildcard filter and test the file name against this filter .