org.apache.ftpserver.filesystem.nativefs.impl
Class NameEqualsFileFilter
java.lang.Object
org.apache.ftpserver.filesystem.nativefs.impl.NameEqualsFileFilter
- All Implemented Interfaces:
- FileFilter
public class NameEqualsFileFilter
- extends Object
- implements FileFilter
Internal class, do not use directly.
FileFilter used for simple file name matching
- Author:
- Apache MINA Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameEqualsFileFilter
public NameEqualsFileFilter(String nameToMatch,
boolean caseInsensitive)
- Constructor
- Parameters:
nameToMatch
- The exact file name to matchcaseInsensitive
- Wether that match should be case insensitive
accept
public boolean accept(File file)
- Specified by:
accept
in interface FileFilter
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.