org.erowid.sperowider.urlfilter
Class PatternMatcher
java.lang.Object
org.erowid.sperowider.urlfilter.PatternMatcher
- public class PatternMatcher
- extends Object
Does Regex style pattern matching in support of regex based URL filters
like RegexFilter
. For details on what
sort of matching is available, see Pattern
.
- Version:
- : $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/urlfilter/PatternMatcher.java,v 1.3 2005/01/16 05:02:52 gurustu Exp $
- Author:
- : $Author: gurustu $
Method Summary |
static boolean |
matchAny(List patternList,
String url)
Returns true if url matches any of the patterns in the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternMatcher
public PatternMatcher()
matchAny
public static boolean matchAny(List patternList,
String url)
- Returns true if url matches any of the patterns in the list.