Home | History | Annotate | Download | only in io

Lines Matching refs:pattern

23 import java.util.regex.Pattern;
34 private final Pattern pattern;
37 * Constructs a pattern file name filter object.
38 * @param patternStr the pattern string on which to filter file names
40 * @throws PatternSyntaxException if pattern compilation fails (runtime)
43 this(Pattern.compile(patternStr));
47 * Constructs a pattern file name filter object.
48 * @param pattern the pattern on which to filter file names
50 public PatternFilenameFilter(Pattern pattern) {
51 this.pattern = Preconditions.checkNotNull(pattern);
55 return pattern.matcher(fileName).matches();