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 matched against base filename.
Since:
2.1
  • Constructor Details

    • PatternFileSelector

      public PatternFileSelector(Pattern pattern)
      Creates a new selector for the given pattern.
      Parameters:
      pattern - The regular expressed used by this selector.
    • PatternFileSelector

      public PatternFileSelector(String regex)
      Creates a new selector for the given pattern.
      Parameters:
      regex - The regular expressed used by this selector.
    • PatternFileSelector

      public PatternFileSelector(String regex, int flags)
      Creates a new selector for the given Pattern and flags.
      Parameters:
      regex - The expression to be compiled
      flags - Match flags, a bit mask.
      See Also:
  • Method Details