org.erowid.sperowider.urlfilter
Class RegexFilter

java.lang.Object
  extended byorg.erowid.sperowider.urlfilter.AIncludeExcludeFilter
      extended byorg.erowid.sperowider.urlfilter.RegexFilter

public class RegexFilter
extends AIncludeExcludeFilter

A regex based implementation of AIncludeExcludeFilter.

Version:
: $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/urlfilter/RegexFilter.java,v 1.2 2005/01/16 06:47:26 gurustu Exp $
Author:
: $Author: gurustu $

Constructor Summary
RegexFilter()
           
 
Method Summary
 void addExclude(Object exclude)
          Converts the passed in String to a Pattern
 void addInclude(Object include)
          Converts the passed in String to a Pattern
protected  boolean matchAny(List patternList, String name)
          Returns true if any of the pattern in the passed in list match the passed in name
 
Methods inherited from class org.erowid.sperowider.urlfilter.AIncludeExcludeFilter
getExcludes, getIncludes, init, matchExcludes, matchIncludes, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegexFilter

public RegexFilter()
Method Detail

matchAny

protected boolean matchAny(List patternList,
                           String name)
Returns true if any of the pattern in the passed in list match the passed in name

Specified by:
matchAny in class AIncludeExcludeFilter

addExclude

public void addExclude(Object exclude)
Converts the passed in String to a Pattern

Overrides:
addExclude in class AIncludeExcludeFilter

addInclude

public void addInclude(Object include)
Converts the passed in String to a Pattern

Overrides:
addInclude in class AIncludeExcludeFilter

spero logo small Sperowider is
© 2005 Erowid.org