net.sf.mmm.util.file.base
Class FileStringFilterAdapter
java.lang.Object
net.sf.mmm.util.file.base.FileStringFilterAdapter
- All Implemented Interfaces:
- FileFilter
public final class FileStringFilterAdapter
- extends Object
- implements FileFilter
This class implements the FileFilter interface by simply delegating
to a Filter<String>. It will get the
path and filename of the file to
check and normalizes all separators to
'/'. The resulting string is passed to the adapted
Filter.
- Since:
- 1.0.2
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
- See Also:
FileFilterAdapter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filter
private final Filter<String> filter
- See Also:
accept(File)
FileStringFilterAdapter
public FileStringFilterAdapter(Filter<String> filter)
- The constructor.
- Parameters:
filter - is the filter to adapt.
accept
public boolean accept(File file)
-
- Specified by:
accept in interface FileFilter
Copyright © 2001-2010 mmm-Team. All Rights Reserved.