code: public static boolean matchPath(String pattern, String str) {
          String[] patDirs = tokenize(pattern);
          return matchPath(patDirs, tokenize(str), true);
      }
docs: Tests whether or not a given path matches a given pattern.
  <p/>
  If you need to call this method multiple times with the same pattern you
  should rather use TokenizedPath
  
  @param pattern The pattern to match against. Must not be <code>null</code>
  .
  @param str     The path to match, as a String. Must not be <code>null</code>.
  @return <code>true</code> if the pattern matches against the string, or
  <code>false</code> otherwise.
  @see TokenizedPath