public static class FileUtil.DirFileFilter extends Object implements FileFilter
DirFileFilter
class allows to filter files based on specified directory path
and filename extension.Constructor and Description |
---|
DirFileFilter(String dirPath,
String fileExt)
Constructs
DirFileFilter object for specified directory and file extension. |
public boolean accept(File file)
accept
in interface FileFilter
file
- The given file to be tested.true
if the given file should be accepted, false
otherwise.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.