Package com.google.common.io
Class PatternFilenameFilter
- java.lang.Object
-
- com.google.common.io.PatternFilenameFilter
-
- All Implemented Interfaces:
java.io.FilenameFilter
@Beta @Deprecated(since="2022-12-01") public final class PatternFilenameFilter extends java.lang.Object implements java.io.FilenameFilter
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023File name filter that only accepts files matching a regular expression. This class is thread-safe and immutable.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description PatternFilenameFilter(java.lang.String patternStr)
Deprecated.Constructs a pattern file name filter object.PatternFilenameFilter(java.util.regex.Pattern pattern)
Deprecated.Constructs a pattern file name filter object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
accept(java.io.File dir, java.lang.String fileName)
Deprecated.
-
-
-
Constructor Detail
-
PatternFilenameFilter
public PatternFilenameFilter(java.lang.String patternStr)
Deprecated.Constructs a pattern file name filter object.- Parameters:
patternStr
- the pattern string on which to filter file names- Throws:
java.util.regex.PatternSyntaxException
- if pattern compilation fails (runtime)
-
PatternFilenameFilter
public PatternFilenameFilter(java.util.regex.Pattern pattern)
Deprecated.Constructs a pattern file name filter object.- Parameters:
pattern
- the pattern on which to filter file names
-
-