com.isti.util
Class AbstractFileFilter

java.lang.Object
  extended by com.isti.util.AbstractFileFilter
All Implemented Interfaces:
java.io.FileFilter
Direct Known Subclasses:
ExtensionFileFilter, PrefixFileFilter, SpecificFileFilter, WildcardFilter

abstract class AbstractFileFilter
extends java.lang.Object
implements java.io.FileFilter

Abstract file filter.


Field Summary
protected  java.lang.String filter
           
 
Constructor Summary
AbstractFileFilter(java.lang.String filter)
          Constructs an abstruct 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.
abstract  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

AbstractFileFilter

public AbstractFileFilter(java.lang.String filter)
Constructs an abstruct file filter.

Parameters:
filter - filter file string
Method Detail

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

accept

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

Parameters:
filename - The filename 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.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.