public class WildcharPathUtils extends Object
This method uses recursive matching, as in linux or windows. regexp works the same. This method is very fast, comparing to similar implementations.
| Constructor and Description |
|---|
WildcharPathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
matchPath(String path,
String pattern)
Matches path against pattern using *, ? and ** wildcards.
|
static int |
matchPathOne(String path,
String[] patterns)
Matches path to at least one pattern.
|
public static boolean matchPath(String path, String pattern)
public static int matchPathOne(String path, String[] patterns)
-1 otherwise.matchPath(String, String)Copyright © 2016 jetbrick. All rights reserved.