net.sf.mmm.util.file.base
Class FileStringFilterAdapter

java.lang.Object
  extended by 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

Field Summary
private  Filter<String> filter
           
 
Constructor Summary
FileStringFilterAdapter(Filter<String> filter)
          The constructor.
 
Method Summary
 boolean accept(File file)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

private final Filter<String> filter
See Also:
accept(File)
Constructor Detail

FileStringFilterAdapter

public FileStringFilterAdapter(Filter<String> filter)
The constructor.

Parameters:
filter - is the filter to adapt.
Method Detail

accept

public boolean accept(File file)

Specified by:
accept in interface FileFilter


Copyright © 2001-2010 mmm-Team. All Rights Reserved.