com.xpn.xwiki.render.filter
Class EscapeFilter

java.lang.Object
  extended by org.radeox.filter.FilterSupport
      extended by org.radeox.filter.regex.RegexFilter
          extended by org.radeox.filter.regex.RegexTokenFilter
              extended by org.radeox.filter.regex.LocaleRegexTokenFilter
                  extended by com.xpn.xwiki.render.filter.EscapeFilter
All Implemented Interfaces:
org.radeox.filter.CacheFilter, org.radeox.filter.Filter

public class EscapeFilter
extends org.radeox.filter.regex.LocaleRegexTokenFilter
implements org.radeox.filter.CacheFilter

Transforms multiple \ into single backspaces and escapes other characters.


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
EscapeFilter()
           
 
Method Summary
protected  String getLocaleKey()
           
 String handleMatch(org.radeox.regex.MatchResult result, org.radeox.filter.context.FilterContext context)
           
 void handleMatch(StringBuffer buffer, org.radeox.regex.MatchResult result, org.radeox.filter.context.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
before, getDescription, replaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EscapeFilter

public EscapeFilter()
Method Detail

getLocaleKey

protected String getLocaleKey()
Specified by:
getLocaleKey in class org.radeox.filter.regex.LocaleRegexTokenFilter

handleMatch

public void handleMatch(StringBuffer buffer,
                        org.radeox.regex.MatchResult result,
                        org.radeox.filter.context.FilterContext context)
Specified by:
handleMatch in class org.radeox.filter.regex.RegexTokenFilter

handleMatch

public String handleMatch(org.radeox.regex.MatchResult result,
                          org.radeox.filter.context.FilterContext context)


Copyright © 2004-2013 XWiki. All Rights Reserved.