org.erowid.sperowider.urlfilter
Class RegexFilter
java.lang.Object
org.erowid.sperowider.urlfilter.AIncludeExcludeFilter
org.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 $
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 |
RegexFilter
public RegexFilter()
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