org.apache.ftpserver.util
Class FileRegularFilter

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

Constructor Summary
FileRegularFilter(String pattern)
          Constructor.
 
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
 

Constructor Detail

FileRegularFilter

public FileRegularFilter(String pattern)
Constructor.

Parameters:
pattern - regular expression
Method Detail

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 found
name - - the name of the file.


Copyright © 2001-2012 Codehaus. All Rights Reserved.