public class FilenameExtensionFilter extends Object implements FileFilter
| Constructor and Description |
|---|
FilenameExtensionFilter(boolean caseSensitive,
Iterable<String> extensions)
Creates a FilenameExtensionFilter with a set of extensions
|
FilenameExtensionFilter(boolean caseSensitive,
String... extensions)
Creates a FilenameExtensionFilter with a set of extensions
|
FilenameExtensionFilter(Iterable<String> extensions)
Creates a case insensitive FilenameExtensionFilter with a set of extensions
|
FilenameExtensionFilter(Iterable<String> extensions,
boolean caseSensitive)
Deprecated.
use
boolean caseSensitive,Iterable constructor instead |
FilenameExtensionFilter(String... extensions)
Creates a case insensitive FilenameExtensionFilter with a set of extensions
|
FilenameExtensionFilter(String extension,
boolean caseSensitive)
Deprecated.
use
boolean caseSensitive,String... extensions constructor instead |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File pathname) |
boolean |
accept(File dir,
String name) |
boolean |
accept(String name) |
@Deprecated public FilenameExtensionFilter(String extension, boolean caseSensitive)
boolean caseSensitive,String... extensions constructor insteadextension - the extension without the dot (e.g. "zip" should be used as the extension for zip files, "tar.gz" should be used as the
extension for tar.gz files)caseSensitive - true if matches should be case sensitive, otherwise false to perform case insensitive matching@Deprecated public FilenameExtensionFilter(Iterable<String> extensions, boolean caseSensitive)
boolean caseSensitive,Iterable extensions constructor insteadextensions - the extensions without the dot (e.g. "zip" should be used as the extension for zip files, "tar.gz" should be used as the
extension for tar.gz files)caseSensitive - true if matches should be case sensitive, otherwise false to perform case insensitive matchingpublic FilenameExtensionFilter(boolean caseSensitive,
String... extensions)
caseSensitive - true if matches should be case sensitive, otherwise false to perform case insensitive matchingextensions - the extensions without the dot (e.g. "zip" should be used as the extension for zip files, "tar.gz" should be used as the
extension for tar.gz files)public FilenameExtensionFilter(String... extensions)
extensions - the extensions without the dot (e.g. "zip" should be used as the extension for zip files, "tar.gz" should be used as the
extension for tar.gz files)public FilenameExtensionFilter(Iterable<String> extensions)
extensions - the extensions without the dot (e.g. "zip" should be used as the extension for zip files, "tar.gz" should be used as the
extension for tar.gz files)public FilenameExtensionFilter(boolean caseSensitive,
Iterable<String> extensions)
caseSensitive - true if matches should be case sensitive, otherwise false to perform case insensitive matchingextensions - the extensions without the dot (e.g. "zip" should be used as the extension for zip files, "tar.gz" should be used as the
extension for tar.gz files)public boolean accept(File pathname)
accept in interface FileFilterFileFilter.accept(java.io.File)public boolean accept(String name)
Copyright © 2016. All rights reserved.