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