Class PathMatchers

java.lang.Object
com.google.common.jimfs.PathMatchers

final class PathMatchers extends Object
PathMatcher factory for any file system.
  • Constructor Details

    • PathMatchers

      private PathMatchers()
  • Method Details

    • getPathMatcher

      public static PathMatcher getPathMatcher(String syntaxAndPattern, String separators, com.google.common.collect.ImmutableSet<PathNormalization> normalizations)
      Gets a PathMatcher for the given syntax and pattern as specified by FileSystem.getPathMatcher(java.lang.String). The separators 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

      private static PathMatcher fromRegex(String regex, Iterable<PathNormalization> normalizations)