public CssFilterRule(String ruleText){
  super(ruleText);
  String mask;
  boolean styleInject=false;
  boolean whiteListRule=false;
  if (StringUtils.contains(ruleText,MASK_CSS_INJECT_EXCEPTION_RULE)) {
    mask=MASK_CSS_INJECT_EXCEPTION_RULE;
    whiteListRule=true;
    styleInject=true;
  }
 else   if (StringUtils.contains(ruleText,MASK_CSS_INJECT_RULE)) {
    mask=MASK_CSS_INJECT_RULE;
    styleInject=true;
  }
 else   if (StringUtils.contains(ruleText,MASK_CSS_EXCEPTION_RULE)) {
    mask=MASK_CSS_EXCEPTION_RULE;
    whiteListRule=true;
  }
 else   if (StringUtils.contains(ruleText,MASK_CSS_RULE)) {
    mask=MASK_CSS_RULE;
  }
 else {
    throw new IllegalArgumentException("ruleText");
  }
  int indexOfMask=StringUtils.indexOf(ruleText,mask);
  if (indexOfMask > 0) {
    String domains=StringUtils.substring(ruleText,0,indexOfMask);
    loadDomains(domains);
  }
  this.styleInject=styleInject;
  this.whiteListRule=whiteListRule;
  cssContent=ruleText.substring(indexOfMask + mask.length());
}

public CssFilterRule ( String ruleText ) { super ( ruleText ) ; String mask ; boolean styleInject = false ; boolean whiteListRule = false ; if ( StringUtils . contains ( ruleText , MASK_CSS_INJECT_EXCEPTION_RULE ) ) { mask = MASK_CSS_INJECT_EXCEPTION_RULE ; whiteListRule = true ; styleInject = true ; } else if ( StringUtils . contains ( ruleText , MASK_CSS_INJECT_RULE ) ) { mask = MASK_CSS_INJECT_RULE ; styleInject = true ; } else if ( StringUtils . contains ( ruleText , MASK_CSS_EXCEPTION_RULE ) ) { mask = MASK_CSS_EXCEPTION_RULE ; whiteListRule = true ; } else if ( StringUtils . contains ( ruleText , MASK_CSS_RULE ) ) { mask = MASK_CSS_RULE ; } else { throw new IllegalArgumentException ( "ruleText" ) ; } int indexOfMask = StringUtils . indexOf ( ruleText , mask ) ; if ( indexOfMask > 0 ) { String domains = StringUtils . substring ( ruleText , 0 , indexOfMask ) ; loadDomains ( domains ) ; } this . styleInject = styleInject ; this . whiteListRule = whiteListRule ; cssContent = ruleText . substring ( indexOfMask + mask . length ( ) ) ; }
creates css filter rule
