Package org.radeox.filter
Class EscapeFilter
-
- All Implemented Interfaces:
CacheFilter,Filter
public class EscapeFilter extends LocaleRegexTokenFilter implements CacheFilter
-
-
Field Summary
-
Fields inherited from class org.radeox.filter.regex.LocaleRegexTokenFilter
inputMessages, outputMessages
-
Fields inherited from class org.radeox.filter.regex.RegexFilter
MULTILINE, pattern, SINGLELINE, substitute
-
Fields inherited from class org.radeox.filter.FilterSupport
initialContext
-
-
Constructor Summary
Constructors Constructor Description EscapeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]before()protected StringgetLocaleKey()voidhandleMatch(StringBuffer buffer, MatchResult result, FilterContext context)Method is called for every occurance of a regular expression.StringhandleMatch(MatchResult result, FilterContext context)-
Methods inherited from class org.radeox.filter.regex.LocaleRegexTokenFilter
getInputBundle, getOutputBundle, isSingleLine, setInitialContext
-
Methods inherited from class org.radeox.filter.regex.RegexTokenFilter
filter, setUp
-
Methods inherited from class org.radeox.filter.regex.RegexFilter
addRegex, addRegex, clearRegex
-
Methods inherited from class org.radeox.filter.FilterSupport
getDescription, replaces
-
-
-
-
Method Detail
-
getLocaleKey
protected String getLocaleKey()
- Specified by:
getLocaleKeyin classLocaleRegexTokenFilter
-
handleMatch
public void handleMatch(StringBuffer buffer, MatchResult result, FilterContext context)
Description copied from class:RegexTokenFilterMethod is called for every occurance of a regular expression. Subclasses have to implement this mehtod.- Specified by:
handleMatchin classRegexTokenFilter- Parameters:
buffer- Buffer to write replacement string toresult- Hit with the found regualr expressioncontext- FilterContext for filters
-
handleMatch
public String handleMatch(MatchResult result, FilterContext context)
-
before
public String[] before()
- Specified by:
beforein interfaceFilter- Overrides:
beforein classFilterSupport
-
-