Class PatternFileSelector

java.lang.Object
org.apache.commons.vfs2.PatternFileSelector
All Implemented Interfaces:
FileSelector

public class PatternFileSelector extends Object implements FileSelector
A FileSelector that selects based on regular expressions.

The regular expression specified in one of the constructors is matched against FileName.getPath() of all candidate files. If you want to match only against the base file name, make sure to prefix the pattern with ".*\\/".

Since:
2.1