[jdom-interest] XMLOutputter

Elliotte Rusty Harold elharo at metalab.unc.edu
Fri Aug 4 14:46:24 PDT 2000


At 7:05 AM -0700 8/4/00, Alex Chaffee wrote:
>My other, more pragmatic motivation for keeping the options inside the
>object is it simplifies the API.
>
>	XMLOutputter o = new XMLOutputter(true, "  ");
>
>	vs.
>
>	XMLOutputter o = new XMLOutputter( new XMLOutputFormat ( true, "  ") );
>
>

This is a red herring. In either case we can very easily provide:

XMLOutputter o = new XMLOutputter();

which would simply set up the defaults, whether those defaults are 
implemented in this class or a different class.

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|                  The XML Bible (IDG Books, 1999)                   |
|              http://metalab.unc.edu/xml/books/bible/               |
|   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list