public class FileFilter extends Object
Constructor and Description |
---|
FileFilter(List<String> includes,
List<String> excludes)
Construct a new FileFilter
|
Modifier and Type | Method and Description |
---|---|
String |
getExcludes()
Get the excludes pattern
|
List<String> |
getFileNames(File directory)
Returns a list of file names.
|
List<File> |
getFiles(File directory)
Returns a list of files.
|
String |
getIncludes()
Get the includes pattern
|
public List<String> getFileNames(File directory) throws IOException
directory
- the directory to scanIOException
- if file system access failspublic List<File> getFiles(File directory) throws IOException
directory
- the directory to scanIOException
- if file system access failspublic String getIncludes()
public String getExcludes()
Copyright © 2016. All rights reserved.