public PatternReplaceFilter(TokenStream in,Pattern p,String replacement,boolean all){
  super(in);
  this.replacement=(null == replacement) ? "" : replacement;
  this.all=all;
  this.m=p.matcher(termAtt);
}

public PatternReplaceFilter ( TokenStream in , Pattern p , String replacement , boolean all ) { super ( in ) ; this . replacement = ( null == replacement ) ? "" : replacement ; this . all = all ; this . m = p . matcher ( termAtt ) ; }
constructs an instance to replace either the first , or all occurances
