private void writeAttributes(Attributes atts) throws SAXException {
        int len = atts.getLength();
        for (int i = 0; i < len; i++) {
            write(' ');
            writeName(atts.getURI(i), atts.getLocalName(i), atts.getQName(i),
                    false);
            if (htmlMode
                    && booleanAttribute(atts.getLocalName(i), atts.getQName(i),
                    atts.getValue(i)))
                break;
            write("=\"");
            String s = atts.getValue(i);
            writeEscUTF16(s, 0, s.length(), true);
            write('"');
        }
    }
private void writeAttributes(Attributes atts) throws SAXException {
        int len = atts.getLength();
        for (int i = 0; i < len; i++) {
            write(' ');
            writeName(atts.getURI(i), atts.getLocalName(i), atts.getQName(i),
                    false);
            if (htmlMode
                    && booleanAttribute(atts.getLocalName(i), atts.getQName(i),
                    atts.getValue(i)))
                break;
            write("=\"");
            String s = atts.getValue(i);
            writeEscUTF16(s, 0, s.length(), true);
            write('"');
        }
    }
private void writeAttributes ( Attributes atts ) throws SAXException { int len = atts . getLength ( ) ; for ( int i = 0 ; i < len ; i ++ ) { write ( ' ' ) ; writeName ( atts . getURI ( i ) , atts . getLocalName ( i ) , atts . getQName ( i ) , false ) ; if ( htmlMode && booleanAttribute ( atts . getLocalName ( i ) , atts . getQName ( i ) , atts . getValue ( i ) ) ) break ; write ( "=\"" ) ; String s = atts . getValue ( i ) ; writeEscUTF16 ( s , 0 , s . length ( ) , true ) ; write ( ' ' ) ; } }
Write out an attribute list, escaping values.
<p>
The names will have prefixes added to them.

@param atts The attribute list to write.
@throws org.xml.SAXException If there is an error writing the attribute list, this
method will throw an IOException wrapped in a
SAXException.
Write out an attribute list escaping values . <p > The names will have prefixes added to them .