org.erowid.sperowider.urlfilter
Class PatternMatcher

java.lang.Object
  extended byorg.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 $

Constructor Summary
PatternMatcher()
           
 
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
 

Constructor Detail

PatternMatcher

public PatternMatcher()
Method Detail

matchAny

public static boolean matchAny(List patternList,
                               String url)
Returns true if url matches any of the patterns in the list.


spero logo small Sperowider is
© 2005 Erowid.org