org.erowid.sperowider.urlfilter
Class SimpleMatcher
java.lang.Object
org.erowid.sperowider.urlfilter.SimpleMatcher
- public class SimpleMatcher
- extends Object
Does simple style pattern matching in support of simple based URL filters
like SimpleFilter
. The simple pattern
uses String patterns that use the "*" wildcard. It can only be used
as the pattern itself, at the beginning of the pattern, or at the end.
("*", "*animals", "animals*" are all allowed;
"ani*mals" and "*animals*" are not.)
- Version:
- : $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/urlfilter/SimpleMatcher.java,v 1.3 2005/01/16 05:02:52 gurustu Exp $
- Author:
- : $Author: gurustu $
Method Summary |
static boolean |
matchAny(List patternList,
String url)
Performs a simple match, as described in the class doc. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleMatcher
public SimpleMatcher()
matchAny
public static boolean matchAny(List patternList,
String url)
- Performs a simple match, as described in the class doc.