org.shaker.dwu
Class BugFilter

java.lang.Object
  |
  +--org.shaker.dwu.BugFilter
All Implemented Interfaces:
java.io.FilenameFilter

final class BugFilter
extends java.lang.Object
implements java.io.FilenameFilter

This inner class provides a simple FilenameFilter. Its a positive filter, that returns every filename that ends with ".bug" (BugProfile log file).

Author:
Philipp Bartsch (codeshaker@gmx.net), GPL License

Constructor Summary
(package private) BugFilter()
          Filter constructor
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Returns true, if the filename ends with
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

BugFilter

BugFilter()
Filter constructor
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Returns true, if the filename ends with
".bug"
.
Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - the directory of the file (ignored)
name - the file name (has to end with .bug)
Returns:
matching flag