@Test public void writef() { MarkupWriter w = new MarkupWriterImpl(); w.element("root"); w.writef("Test name: %s", "writef"); assertEquals(w.toString(), "<root>Test name: writef</root>"); }
public void writef(String format, Object... args) { write(""); currentText.writef(format, args); }
MarkupWriterImpl implements MarkupWriter { public void writef(String format, Object... args) { write(""); currentText.writef(format, args); } }
MarkupWriterImpl implements MarkupWriter { public void writef(String format, Object... args) { write(""); currentText.writef(format, args); } MarkupWriterImpl();  MarkupWriterImpl(MarkupModel model);  MarkupWriterImpl(MarkupModel model, String encoding, String mimeType); }
MarkupWriterImpl implements MarkupWriter { public void writef(String format, Object... args) { write(""); currentText.writef(format, args); } MarkupWriterImpl();  MarkupWriterImpl(MarkupModel model);  MarkupWriterImpl(MarkupModel model, String encoding, String mimeType); void toMarkup(PrintWriter writer); @Override String toString(); Document getDocument(); Element getElement(); void cdata(String content); void write(String text); void writef(String format, Object... args); void attributes(Object... namesAndValues); Element element(String name, Object... namesAndValues); void writeRaw(String text); Element end(); void comment(String text); Element attributeNS(String namespace, String attributeName, String attributeValue); Element defineNamespace(String namespace, String namespacePrefix); Element elementNS(String namespace, String elementName); void addListener(MarkupWriterListener listener); void removeListener(MarkupWriterListener listener); }
MarkupWriterImpl implements MarkupWriter { public void writef(String format, Object... args) { write(""); currentText.writef(format, args); } MarkupWriterImpl();  MarkupWriterImpl(MarkupModel model);  MarkupWriterImpl(MarkupModel model, String encoding, String mimeType); void toMarkup(PrintWriter writer); @Override String toString(); Document getDocument(); Element getElement(); void cdata(String content); void write(String text); void writef(String format, Object... args); void attributes(Object... namesAndValues); Element element(String name, Object... namesAndValues); void writeRaw(String text); Element end(); void comment(String text); Element attributeNS(String namespace, String attributeName, String attributeValue); Element defineNamespace(String namespace, String namespacePrefix); Element elementNS(String namespace, String elementName); void addListener(MarkupWriterListener listener); void removeListener(MarkupWriterListener listener);  }