agents.util
Class SimpleFilter
java.lang.Object
|
+--agents.util.SimpleFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
- public class SimpleFilter
- extends java.lang.Object
- implements java.io.FilenameFilter
This class implements the FilenameFilter interface.
It defines the accept method that defines if a file is listed or not.
It considers any regular expression with '*' ou '?'
Method Summary |
boolean |
accept(java.io.File dir,
java.lang.String name)
|
boolean |
match(java.lang.String str,
java.lang.String pat)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleFilter
public SimpleFilter(java.lang.String pattern)
accept
public boolean accept(java.io.File dir,
java.lang.String name)
- Specified by:
accept
in interface java.io.FilenameFilter
match
public boolean match(java.lang.String str,
java.lang.String pat)