org.apache.sshd.server.filesystem
Class NameEqualsFileFilter

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

Constructor Summary
NameEqualsFileFilter(String nameToMatch, boolean caseInsensitive)
          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
 

Constructor Detail

NameEqualsFileFilter

public NameEqualsFileFilter(String nameToMatch,
                            boolean caseInsensitive)
Constructor

Parameters:
nameToMatch - The exact file name to match
caseInsensitive - Wether that match should be case insensitive
Method Detail

accept

public boolean accept(File file)
Specified by:
accept in interface FileFilter


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.