net.hblok.io
Class FilterAdapter

java.lang.Object
  extended by net.hblok.io.FilterAdapter
All Implemented Interfaces:
FileFilter

public class FilterAdapter
extends Object
implements FileFilter

Adapter which converts a FilenameFilter to a FileFilter. The path name forwarded to the FilenameFilter is the abstract path, as return by the method File.getParentFile().

Author:
Havard Rast Blok

Constructor Summary
FilterAdapter(FilenameFilter filter)
           
 
Method Summary
 boolean accept(File pathname)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterAdapter

public FilterAdapter(FilenameFilter filter)
Method Detail

accept

public boolean accept(File pathname)
Specified by:
accept in interface FileFilter

toString

public String toString()
Overrides:
toString in class Object