Class PathMatchers
java.lang.Object
com.google.common.jimfs.PathMatchers
PathMatcher factory for any file system.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classPathMatcherthat matches thetoString()form of aPathagainst a regexPattern. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PathMatcherfromRegex(String regex, Iterable<PathNormalization> normalizations) static PathMatchergetPathMatcher(String syntaxAndPattern, String separators, com.google.common.collect.ImmutableSet<PathNormalization> normalizations) Gets aPathMatcherfor the given syntax and pattern as specified byFileSystem.getPathMatcher(String).
-
Constructor Details
-
PathMatchers
private PathMatchers()
-
-
Method Details
-
getPathMatcher
public static PathMatcher getPathMatcher(String syntaxAndPattern, String separators, com.google.common.collect.ImmutableSet<PathNormalization> normalizations) Gets aPathMatcherfor the given syntax and pattern as specified byFileSystem.getPathMatcher(String). Theseparatorsstring contains the path name element separators (one character each) recognized by the file system. For a glob-syntax path matcher, any of the given separators will be recognized as a separator in the pattern, and any of them will be matched as a separator when checking a path. -
fromRegex
-