public class RegexFileScanner extends Object implements FileScanner
Constructor and Description |
---|
RegexFileScanner()
Constructs a new instance.
|
RegexFileScanner(Log logger)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected IOFileFilter |
createFileFilter(File directory,
String[] includes,
String[] excludes)
Creates a
IOFileFilter which will be used to find all files whose match filters. |
Collection<File> |
getFiles(File directory,
String[] includes,
String[] excludes)
Returns files contained by a directory.
|
public RegexFileScanner()
public RegexFileScanner(Log logger)
logger
- the logger used to log included/excluded files (only in debug mode).public Collection<File> getFiles(File directory, String[] includes, String[] excludes)
getFiles
in interface FileScanner
directory
- the directory to be scanned.includes
- an array of include patterns.excludes
- an array of exclude patternsprotected IOFileFilter createFileFilter(File directory, String[] includes, String[] excludes)
IOFileFilter
which will be used to find all files whose match filters.directory
- the directory to be scanned.includes
- an array of include patterns.excludes
- an array of exclude patternsIOFileFilter
.Copyright © 2015–2016 gabrys.biz. All rights reserved.