code: public void setAttributeList (AttributeList atts)
      {
      int count = atts.getLength();
  
      clear();
  
      for (int i = 0; i < count; i++) {
          addAttribute(atts.getName(i), atts.getType(i), atts.getValue(i));
      }
      }
docs: Set the attribute list, discarding previous contents.
  
  <p>This method allows an application writer to reuse an
  attribute list easily.</p>
  
  @param atts The attribute list to copy.