Home | History | Annotate | Download | only in io

Lines Matching refs:Pattern

24 import java.util.regex.Pattern;
39 private final Pattern pattern;
42 * Constructs a pattern file name filter object.
43 * @param patternStr the pattern string on which to filter file names
45 * @throws PatternSyntaxException if pattern compilation fails (runtime)
48 this(Pattern.compile(patternStr));
52 * Constructs a pattern file name filter object.
53 * @param pattern the pattern on which to filter file names
55 public PatternFilenameFilter(Pattern pattern) {
56 this.pattern = Preconditions.checkNotNull(pattern);
60 return pattern.matcher(fileName).matches();