public class FileFilterHelper extends Object
Constructor and Description |
---|
FileFilterHelper() |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.io.filefilter.IOFileFilter |
createDefaultFilter()
This will create a FileFilter which is the same as in plexus-utils (DirectoryScanner.DEFAULTEXCLUDES).
|
static org.apache.commons.io.filefilter.IOFileFilter |
makeDirectoryAware(org.apache.commons.io.filefilter.IOFileFilter filter,
String directoryName)
Make the given IOFileFilter aware of directories.
|
static org.apache.commons.io.filefilter.IOFileFilter |
makeFileNameAware(org.apache.commons.io.filefilter.IOFileFilter filter,
String fileName)
Make the given IOFileFilter aware of files.
|
static org.apache.commons.io.filefilter.IOFileFilter |
makePatternFileNameAware(org.apache.commons.io.filefilter.IOFileFilter filter,
String pattern)
Make the given IOFileFilter aware of the given pattern.
|
static org.apache.commons.io.filefilter.IOFileFilter |
makeSuffixAware(org.apache.commons.io.filefilter.IOFileFilter filter,
String suffixFileName)
Make the given IOFileFilter aware of an suffix.
|
public static org.apache.commons.io.filefilter.IOFileFilter makeDirectoryAware(org.apache.commons.io.filefilter.IOFileFilter filter, String directoryName)
filter
- The filter to make aware of directories.directoryName
- The directory name which should be payed attention to.public static org.apache.commons.io.filefilter.IOFileFilter makeFileNameAware(org.apache.commons.io.filefilter.IOFileFilter filter, String fileName)
filter
- The filter to make aware of files.fileName
- The file name which should be payed attention to.public static org.apache.commons.io.filefilter.IOFileFilter makeSuffixAware(org.apache.commons.io.filefilter.IOFileFilter filter, String suffixFileName)
filter
- The filter to make aware of an suffix.suffixFileName
- The suffix name which should be payed attention to.public static org.apache.commons.io.filefilter.IOFileFilter makePatternFileNameAware(org.apache.commons.io.filefilter.IOFileFilter filter, String pattern)
filter
- The filter to make aware of the pattern.pattern
- The pattern which should be payed attention to.public static org.apache.commons.io.filefilter.IOFileFilter createDefaultFilter()
Copyright © 2006–2015 Codehaus. All rights reserved.