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 FilenameFilterdir - - the directory in which the file was foundname - - the name of the file.Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.