org.apache.sshd.server.filesystem
Class NameEqualsFileFilter
java.lang.Object
org.apache.sshd.server.filesystem.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 © 2008-2012 Apache Software Foundation. All Rights Reserved.