/** * Read path matcher from string. * * @param str A string containing a path expression. * @return A PathMatcher corresponding to the parsed input * from the string. * @throws * com.groupon.lex.metrics.PathMatcher.ParseException * on invalid path expression. */ public static PathMatcher valueOf(String str) throws ParseException { try { return valueOf(new StringReader(str)); } catch (IOException ex) { throw new IllegalStateException("StringReader IO error?", ex); } }