org.apache.ftpserver.util
Class FileRegularFilter
java.lang.Object
org.apache.ftpserver.util.FileRegularFilter
- All Implemented Interfaces:
- FilenameFilter
public class FileRegularFilter
- extends Object
- implements FilenameFilter
This is regular expression filename filter.
- Author:
- Rana Bhattacharyya
Method Summary |
boolean |
accept(File dir,
String name)
Tests if a specified file should be included in a file list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileRegularFilter
public FileRegularFilter(String pattern)
- Constructor.
- Parameters:
pattern
- regular expression
accept
public boolean accept(File dir,
String name)
- Tests if a specified file should be included in a file list.
- Specified by:
accept
in interface FilenameFilter
- Parameters:
dir
- - the directory in which the file was foundname
- - the name of the file.
Copyright © 2001-2012 Codehaus. All Rights Reserved.