Class PatternFilenameFilter

java.lang.Object
com.google.common.io.PatternFilenameFilter
All Implemented Interfaces:
FilenameFilter

@Beta @Deprecated(since="2022-12-01") public final class PatternFilenameFilter extends Object implements FilenameFilter
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
File name filter that only accepts files matching a regular expression. This class is thread-safe and immutable.
Since:
1.0
  • Constructor Details

    • PatternFilenameFilter

      public PatternFilenameFilter(String patternStr)
      Deprecated.
      Constructs a pattern file name filter object.
      Parameters:
      patternStr - the pattern string on which to filter file names
      Throws:
      PatternSyntaxException - if pattern compilation fails (runtime)
    • PatternFilenameFilter

      public PatternFilenameFilter(Pattern pattern)
      Deprecated.
      Constructs a pattern file name filter object.
      Parameters:
      pattern - the pattern on which to filter file names
  • Method Details