[jdom-interest] PROPOSAL: Remove most constructors from XMLOu tputter (was round trip XML)

Alex Chaffee guru at edamame.stinky.com
Wed Oct 18 09:14:01 PDT 2000

> Also then the common configurations of the XMLOutputter could be declared as
> final variables so thing like the following could be done:-
>     XMLOutputter out = new XMLOutputter( XMLOutConfiguration.MINIMAL );
> where the values could be
> so common sets of configuration options such as (new lines + whitespace) can
> be used as a single constructor argument.

That's also a neat idea, but can easily be done as static variables on
XMLOutputter, e.g.

public class XMLOutputter {
	public static final XMLOutputter COMPACT = new XMLOutputter();
	static {


Alex Chaffee                       mailto:alex at jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

More information about the jdom-interest mailing list