public static class FileUtil.NameFileFilter extends Object implements FileFilter
NameFileFilter class allows to filter files based on specified file name.| Constructor and Description |
|---|
NameFileFilter(String fileName)
Constructs
NameFileFilter object for a given file name. |
public NameFileFilter(String fileName)
NameFileFilter object for a given file name.fileName - The given file name for filtering.public boolean accept(File file)
accept in interface FileFilterfile - The given file to be tested.true if the given file should be accepted, false
otherwise.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.