protected void writeAttributes(AttributeSet attr) throws IOException {
  Enumeration names=attr.getAttributeNames();
  while (names.hasMoreElements()) {
    Object name=names.nextElement();
    write(" " + name + "="+ attr.getAttribute(name));
  }
}

protected void writeAttributes ( AttributeSet attr ) throws IOException { Enumeration names = attr . getAttributeNames ( ) ; while ( names . hasMoreElements ( ) ) { Object name = names . nextElement ( ) ; write ( " " + name + "=" + attr . getAttribute ( name ) ) ; } }
writes out the set of attributes as " & lt ; name & gt ; = & lt ; value & gt ; " pairs . it throws an ioexception when encountered .
