Menu

#2 Allow chained method calls.

open
nobody
None
5
2006-01-02
2006-01-02
No

Similar to StringBuffer, for example:

XMLOutputter out = ...
.
.
.
out.startTag("tr");
out.startTag("td").pcdata(mydata[row][col++]).endTag();
out.startTag("td").pcdata(mydata[row][col++]).endTag();
out.startTag("td").pcdata(mydata[row][col++]).endTag();
out.endTag();

this should just need the methods altering to return
"this", if you would be happy to alter the API in this
was then I have no objection to doing the work and
sending you a patch. Let me know.

Oh, almost forgot: happy new year!

Cheers,
Ian.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.