net.hblok.io
Class FilterAdapter
java.lang.Object
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
FilterAdapter
public FilterAdapter(FilenameFilter filter)
accept
public boolean accept(File pathname)
- Specified by:
accept in interface FileFilter
toString
public String toString()
- Overrides:
toString in class Object