Package com.google.common.jimfs
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 class
PathMatcher
that matches thetoString()
form of aPath
against a regexPattern
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PathMatcher
fromRegex
(String regex, Iterable<PathNormalization> normalizations) static PathMatcher
getPathMatcher
(String syntaxAndPattern, String separators, com.google.common.collect.ImmutableSet<PathNormalization> normalizations) Gets aPathMatcher
for the given syntax and pattern as specified byFileSystem.getPathMatcher(java.lang.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 aPathMatcher
for the given syntax and pattern as specified byFileSystem.getPathMatcher(java.lang.String)
. Theseparators
string 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
-