public void removeAttributes(AttributeSet attributes){
  if (attributes == this) {
    table.clear();
  }
 else {
    Enumeration names=attributes.getAttributeNames();
    while (names.hasMoreElements()) {
      Object name=names.nextElement();
      Object value=attributes.getAttribute(name);
      if (value.equals(getAttribute(name)))       removeAttribute(name);
    }
  }
}

public void removeAttributes ( AttributeSet attributes ) { if ( attributes == this ) { table . clear ( ) ; } else { Enumeration names = attributes . getAttributeNames ( ) ; while ( names . hasMoreElements ( ) ) { Object name = names . nextElement ( ) ; Object value = attributes . getAttribute ( name ) ; if ( value . equals ( getAttribute ( name ) ) ) removeAttribute ( name ) ; } } }
removes a set of attributes from the list .
