Class FilePrefixSelector

java.lang.Object
fc.io.fileselectors.ChainedFileSelector
fc.io.fileselectors.FilePrefixSelector
All Implemented Interfaces:
FileFilter

Filters a list of files based on the specified prefix. Files having the specifed suffix are chosen. To choose all files, specify a empty string as the suffix. 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:

.
foo
.,foo,bar
The above will select all files starting with '.', all files starting with 'foo' and all files starting with '.' or 'foo' or 'bar' respectively.