public class NameEqualsFileFilter extends Object implements FileFilter
Constructor and Description |
---|
NameEqualsFileFilter(String nameToMatch,
boolean caseInsensitive)
Constructor
|
public NameEqualsFileFilter(String nameToMatch, boolean caseInsensitive)
nameToMatch
- The exact file name to matchcaseInsensitive
- Wether that match should be case insensitivepublic boolean accept(File file)
accept
in interface FileFilter
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.