org.alicebot.server.core.util
Class WildCardFilter

java.lang.Object
  extended by org.alicebot.server.core.util.WildCardFilter
All Implemented Interfaces:
java.io.FilenameFilter

public final class WildCardFilter
extends java.lang.Object
implements java.io.FilenameFilter

Implements a simple wildcard file filter.

Taken, with gratitude from the JMK project. (Under the GNU LGPL)

Author:
John D. Ramsdell, Olivier Refalo
See Also:
JMK

Constructor Summary
WildCardFilter(java.lang.String pattern, char wildCard)
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WildCardFilter

public WildCardFilter(java.lang.String pattern,
                      char wildCard)
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter