com.isti.util
Class WildcardFilter

java.lang.Object
  extended bycom.isti.util.AbstractFileFilter
      extended bycom.isti.util.WildcardFilter
All Implemented Interfaces:
java.io.FileFilter

class WildcardFilter
extends AbstractFileFilter

Wildcard file filter.


Field Summary
protected  java.lang.String filter
           
 
Constructor Summary
WildcardFilter(java.lang.String filter)
          Constructs a wildcard file filter.
 
Method Summary
 boolean accept(java.io.File pathname)
          Tests whether or not the specified abstract pathname should be included in a pathname list.
 boolean accept(java.lang.String filename)
          Tests whether or not the specified abstract pathname should be included in a pathname list.
 java.lang.String toString()
          Gets a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filter

protected final java.lang.String filter
Constructor Detail

WildcardFilter

public WildcardFilter(java.lang.String filter)
Constructs a wildcard file filter.

Parameters:
filter - filter file string
Method Detail

accept

public boolean accept(java.lang.String filename)
Tests whether or not the specified abstract pathname should be included in a pathname list.

Specified by:
accept in class AbstractFileFilter
Parameters:
filename - The filename to be tested
Returns:
true if and only if pathname should be included

accept

public boolean accept(java.io.File pathname)
Tests whether or not the specified abstract pathname should be included in a pathname list.

Specified by:
accept in interface java.io.FileFilter
Parameters:
pathname - The abstract pathname to be tested
Returns:
true if and only if pathname should be included

toString

public java.lang.String toString()
Gets a string representation of the object.

Returns:
a string representation of the object.