org.radeox.filter.regex
Class RegexFilter
java.lang.Object
|
+--org.radeox.filter.FilterSupport
|
+--org.radeox.filter.regex.RegexFilter
- All Implemented Interfaces:
- Filter
- Direct Known Subclasses:
- RegexReplaceFilter, RegexTokenFilter
- public abstract class RegexFilter
- extends FilterSupport
Constructor Summary |
RegexFilter()
|
RegexFilter(java.lang.String regex,
java.lang.String substitute)
create a new regular expression that takes input as multiple lines |
RegexFilter(java.lang.String regex,
java.lang.String substitute,
boolean multiline)
create a new regular expression and set |
Method Summary |
void |
addRegex(java.lang.String regex,
java.lang.String substitute)
|
void |
addRegex(java.lang.String regex,
java.lang.String substitute,
boolean multiline)
|
void |
clearRegex()
|
abstract java.lang.String |
filter(java.lang.String input,
FilterContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
limit
protected int limit
interps
protected int interps
matcher
protected PatternMatcher matcher
pattern
protected java.util.List pattern
substitute
protected java.util.List substitute
MULTILINE
public static final boolean MULTILINE
- See Also:
- Constant Field Values
SINGLELINE
public static final boolean SINGLELINE
- See Also:
- Constant Field Values
RegexFilter
public RegexFilter()
RegexFilter
public RegexFilter(java.lang.String regex,
java.lang.String substitute)
- create a new regular expression that takes input as multiple lines
RegexFilter
public RegexFilter(java.lang.String regex,
java.lang.String substitute,
boolean multiline)
- create a new regular expression and set
clearRegex
public void clearRegex()
addRegex
public void addRegex(java.lang.String regex,
java.lang.String substitute)
addRegex
public void addRegex(java.lang.String regex,
java.lang.String substitute,
boolean multiline)
filter
public abstract java.lang.String filter(java.lang.String input,
FilterContext context)
Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.