XMLUtil { public void appendEAttribute(final Appendable appendable, final CharSequence attrName, final String attrRawValue) throws IOException { appendable.append(' ').append(attrName).append("=\"") .append(this.escaper.escapeXMLAttribute(attrRawValue)).append('"'); } XMLUtil(final XMLEscaper escaper); static XMLUtil create(); void appendEAttribute(final Appendable appendable, final CharSequence attrName,
                                 final String attrRawValue); void appendAttribute(final Appendable appendable, final CharSequence attrName,
                                final boolean attrValue); void appendAttribute(final Appendable appendable, final CharSequence attrName,
                                final int attrValue); void appendAttribute(final Appendable appendable, final CharSequence attrName,
                                final CharSequence attrValue); void appendAttribute(final Appendable appendable, final CharSequence attrName,
                                final AttributeValue attrValue); void appendAttribute(final Appendable appendable, final CharSequence attrName,
                                final List<?> attrs, final String sep); void appendTag(final Appendable appendable, final CharSequence tagName,
                          final String content); String escapeXMLAttribute(final String s); String escapeXMLContent(final String s); String formatTimeInterval(final long milliseconds); String formatTimeInterval(final long years, final long months, final long days,
                                     final long hours, final long minutes, final double seconds); String formatNegTimeInterval(final long years, final long months, final long days,
                                        final long hours, final long minutes,
                                        final double seconds); static final String XML_PROLOG; static final char SPACE_CHAR; }
@Test public void testEscStringAttr() throws IOException { this.xu.appendEAttribute(this.sb, "attr", "&"); Assert.assertEquals(" attr=\"&amp;\"", this.sb.toString()); }