public class FileRegularFilter extends Object implements FilenameFilter
Constructor and Description |
---|
FileRegularFilter(String pattern)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File dir,
String name)
Tests if a specified file should be included in a file list.
|
public FileRegularFilter(String pattern)
pattern
- regular expressionpublic boolean accept(File dir, String name)
accept
in interface FilenameFilter
dir
- - the directory in which the file was foundname
- - the name of the file.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.