From: Ernst de H. <zn...@Fr...> - 2003-01-09 10:22:25
|
The new xmlenc 0.21 (not yet released) is going to introduce a new way of dealing with XMLOutputter instances. The result is that it is possible to re-use XMLOutputter objects. This should pootentially improve performance, especially in server-environments. The old way of constructing an XMLOutputter object: XMLOutputter outputter = XMLOutputter.getInstance(writer, encoding); The new way: XMLOutputter outputter = new XMLOutputter(); outputter.init(writer, encoding); And when you want to use the outputter for a new Writer: outputter.reset(); outputter.init(writer, encoding); What do you think of the new way? Ernst -- Ernst de Haan Development Team Leader Wanadoo Nederland B.V. The Lord has truly risen! Merry Christmas and a blessed New Year! |