Class FilePrefixRejectSelector
java.lang.Object
fc.io.fileselectors.ChainedFileSelector
fc.io.fileselectors.FilePrefixRejectSelector
- All Implemented Interfaces:
FileFilter
Filters a list of files based on the specified prefix. Files not
having the specifed suffix are chosen. An empty string will result in all
files being rejected. Note, the file name not the entire path is
looked at by this filter. For example, if a file has a path of
/foo/bar/x.html then only x.html will be looked at by
this filter. (to retrieve the filename, this filter calls
getName() on the input file)
The specified pattern can be a single token or a a comma delimited set of tokens. For example:
The above will reject all files starting with '.', reject files starting with 'foo' and reject files starting with '.' or 'foo' or 'bar' respectively.. foo .,foo,bar
-
Constructor Summary
ConstructorsConstructorDescriptionFilePrefixRejectSelector(String pattern) FilePrefixRejectSelector(String pattern, ChainedFileSelector filter) -
Method Summary
Methods inherited from class ChainedFileSelector
accept
-
Constructor Details
-
FilePrefixRejectSelector
-
FilePrefixRejectSelector
-
-
Method Details
-
main
-