|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.util.filter.regexp.GlobSupport
public final class GlobSupport
Utility class for converting between a glob pattern and a Java regexp Pattern. This uses the same approach as the Jakarta ORO GlobCompiler
.
EntityFS version 1.1 introduces the Glob class which works more like
Java's Pattern class.
Glob| Method Summary | |
|---|---|
static Pattern |
getPattern(String glob)
Get a Java regexp Pattern from a glob pattern. |
static Pattern |
getPattern(String glob,
int flags)
Get a Java regexp Pattern from a glob pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Pattern getPattern(String glob)
throws PatternSyntaxException
Pattern from a glob pattern.
glob - The glob pattern
PatternSyntaxException - On syntax errors (and perhaps internal
bugs...)Glob.getPattern(),
Glob.Glob(String)
public static Pattern getPattern(String glob,
int flags)
throws PatternSyntaxException
Pattern from a glob pattern.
glob - The glob pattern.flags - Flags for the created Pattern object.
PatternSyntaxException - On syntax errorsGlob.getPattern(),
Glob.Glob(String, int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||