protected void writeAttributes(AttributeSet attr) throws IOException {
  convAttr.removeAttributes(convAttr);
  convertToHTML32(attr,convAttr);
  Enumeration names=convAttr.getAttributeNames();
  while (names.hasMoreElements()) {
    Object name=names.nextElement();
    if (name instanceof HTML.Tag || name instanceof StyleConstants || name == HTML.Attribute.ENDTAG) {
      continue;
    }
    write(" " + name + "=\""+ convAttr.getAttribute(name)+ "\"");
  }
}

protected void writeAttributes ( AttributeSet attr ) throws IOException { convAttr . removeAttributes ( convAttr ) ; convertToHTML32 ( attr , convAttr ) ; Enumeration names = convAttr . getAttributeNames ( ) ; while ( names . hasMoreElements ( ) ) { Object name = names . nextElement ( ) ; if ( name instanceof HTML . Tag || name instanceof StyleConstants || name == HTML . Attribute . ENDTAG ) { continue ; } write ( " " + name + "=\"" + convAttr . getAttribute ( name ) + "\"" ) ; } }
writes out the attribute set . ignores all attributes with a key of type html . tag , attributes with a key of type styleconstants , and attributes with a key of type html . attribute . endtag .
