FileDocCategorySizeDatePackage
XMLLineAttributeFilter.javaAPI DocApache log4j 1.2.151284Sat Aug 25 00:09:34 BST 2007org.apache.log4j.util

XMLLineAttributeFilter

public class XMLLineAttributeFilter extends Object implements Filter

Fields Summary
org.apache.oro.text.perl.Perl5Util
util
Constructors Summary
Methods Summary
public java.lang.Stringfilter(java.lang.String in)


   
     
    if(util.match("/line=\"\\d{1,3}\"/", in)) {
      return util.substitute("s/line=\"\\d{1,3}\"/line=\"X\"/", in);
    } else if(util.match("/line=\"?\"/", in)) {
      return util.substitute("s/line=\"?\"/line=\"X\"/", in);
    } else {
      return in;
    }